Module: Dry::Logger
- Extended by:
- Global
- Defined in:
- lib/dry/logger.rb,
lib/dry/logger/clock.rb,
lib/dry/logger/entry.rb,
lib/dry/logger/filter.rb,
lib/dry/logger/global.rb,
lib/dry/logger/version.rb,
lib/dry/logger/constants.rb,
lib/dry/logger/dispatcher.rb,
lib/dry/logger/backends/io.rb,
lib/dry/logger/backends/core.rb,
lib/dry/logger/backends/file.rb,
lib/dry/logger/backends/proxy.rb,
lib/dry/logger/backends/stream.rb,
lib/dry/logger/formatters/json.rb,
lib/dry/logger/formatters/rack.rb,
lib/dry/logger/formatters/colors.rb,
lib/dry/logger/formatters/string.rb,
lib/dry/logger/formatters/template.rb,
lib/dry/logger/formatters/structured.rb
Defined Under Namespace
Modules: Backends, Formatters, Global Classes: Clock, Dispatcher, Entry, Filter
Constant Summary collapse
- VERSION =
"1.0.4"
- NEW_LINE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
$/
- SEPARATOR =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
" "
- TAB =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
SEPARATOR * 2
- EMPTY_ARRAY =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
[].freeze
- EMPTY_HASH =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
{}.freeze
- LOG_METHODS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
%i[debug info warn error fatal unknown].freeze
- BACKEND_METHODS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
%i[close].freeze
- DEBUG =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
::Logger::DEBUG
- INFO =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
::Logger::INFO
- WARN =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
::Logger::WARN
- ERROR =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
::Logger::ERROR
- FATAL =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
::Logger::FATAL
- UNKNOWN =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
::Logger::UNKNOWN
- LEVEL_RANGE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
(DEBUG..UNKNOWN)
- DEFAULT_LEVEL =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
INFO
- LEVELS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Hash .new { |levels, key| LEVEL_RANGE.include?(key) ? key : levels.fetch(key.to_s.downcase, DEFAULT_LEVEL) } .update( "debug" => DEBUG, "info" => INFO, "warn" => WARN, "error" => ERROR, "fatal" => FATAL, "unknown" => UNKNOWN ) .freeze
- DEFAULT_OPTS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
{level: DEFAULT_LEVEL, formatter: nil, progname: nil, log_if: nil}.freeze
- BACKEND_OPT_KEYS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
DEFAULT_OPTS.keys.freeze
- FORMATTER_OPT_KEYS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
%i[filter].freeze
Method Summary
Methods included from Global
formatters, new, register_formatter, register_template, templates