Sha256: 14fb1decc71d1adac3615f4648cf7cca759105920b45d2db22f7d82c98a33479

Contents?: true

Size: 783 Bytes

Versions: 4

Compression:

Stored size: 783 Bytes

Contents

# namespace
module TeeLogger
  # no param of filename, set this filename
  DEFAULT_FILE = './tee_logger.log'

  # Implements targets
  LOGGING_METHODS = [:debug, :info, :warn, :error, :fatal]

  # defined logdev names
  LOGDEV_NAMES = [:console, :logfile]

  # defined paired of logdev name
  LOGDEV_REVERSE = { console: :logfile, logfile: :console }

  # empty format
  FORMATTER_FOR_DISABLING = proc { |_severity, _time, _progname, _msg| '' }

  # using TeeLogger::Utils.extract_options
  # @param logdev_name [Symbol]
  # @param indent_level [Fixnum]
  ParsedOption = Struct.new(:logdev_name, :indent_level)

  # LOGDEV_NAMES not included error
  class IncorrectNameError < StandardError; end

  # option's class is not allow
  class IncorrectOptionError < StandardError; end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tee_logger-3.2.1 lib/tee_logger/constants.rb
tee_logger-3.2.0 lib/tee_logger/constants.rb
tee_logger-3.1.2 lib/tee_logger/constants.rb
tee_logger-3.1.1 lib/tee_logger/constants.rb