Class: Vetinari::Logging::Logger
- Inherits:
-
Logger
- Object
- Logger
- Vetinari::Logging::Logger
- Defined in:
- lib/vetinari/logging/logger.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(*args) ⇒ Logger
Returns a new instance of Logger.
4 5 6 7 8 9 10 |
# File 'lib/vetinari/logging/logger.rb', line 4 def initialize(*args) super(*args) self.formatter = proc do |severity, datetime, progname, msg| "#{severity} #{datetime.strftime('%Y-%m-%d %H:%M:%S')} #{msg}\n" end end |