Module: Utopia::Logger
- Defined in:
- lib/utopia/logger.rb,
lib/utopia/logger/compact_formatter.rb
Defined Under Namespace
Classes: CompactFormatter
Class Method Summary collapse
Class Method Details
.new(output: STDERR, level: ::Logger::WARN) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/utopia/logger.rb', line 25 def self.new(output: STDERR, level: ::Logger::WARN) log = ::Logger.new(output) log.level = level log.formatter = Utopia::Logger::CompactFormatter.new return log end |