Sha256: 0fb4613f4e136ebe2b65d310564ebfa7650e40c8a344d0902d1d9f5b57e41a49

Contents?: true

Size: 615 Bytes

Versions: 1

Compression:

Stored size: 615 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 }

  # using private method #parse_to_hash
  ParsedOption = Struct.new(:logdev_name, :indent_level)
  # LOGDEV_NAMES not incuded error
  class IncorrectNameError < StandardError; end
  # option's class is not allow
  class IncorrectOptionError < StandardError; end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tee_logger-3.0.2 lib/tee_logger/constants.rb