Class: Upfluence::Logger
- Inherits:
-
Logger
- Object
- Logger
- Upfluence::Logger
- Defined in:
- lib/upfluence/logger.rb
Defined Under Namespace
Classes: Formatter
Instance Method Summary collapse
-
#initialize(level = (ENV['LOGGER_LEVEL'] || '').downcase, caller_depth = 0) ⇒ Logger
constructor
A new instance of Logger.
- #logger_level(level) ⇒ Object
Constructor Details
#initialize(level = (ENV['LOGGER_LEVEL'] || '').downcase, caller_depth = 0) ⇒ Logger
Returns a new instance of Logger.
43 44 45 46 47 48 49 50 51 |
# File 'lib/upfluence/logger.rb', line 43 def initialize(level = (ENV['LOGGER_LEVEL'] || '').downcase, caller_depth = 0) $stdout.sync = true super( $stdout, level: logger_level(level), formatter: Formatter.new(caller_depth) ) end |