Class: Dumper::Utility::SlimLogger
- Inherits:
-
Logger
- Object
- Logger
- Dumper::Utility::SlimLogger
- Defined in:
- lib/dumper/utility/log.rb
Defined Under Namespace
Classes: SlimFormatter
Instance Method Summary collapse
-
#initialize(logdev, shift_age = 0, shift_size = 1048576) ⇒ SlimLogger
constructor
A new instance of SlimLogger.
Constructor Details
#initialize(logdev, shift_age = 0, shift_size = 1048576) ⇒ SlimLogger
Returns a new instance of SlimLogger.
27 28 29 30 31 32 |
# File 'lib/dumper/utility/log.rb', line 27 def initialize(logdev, shift_age = 0, shift_size = 1048576) super self.formatter = SlimFormatter.new self.formatter.datetime_format = "%Y-%m-%dT%H:%M:%S" self.level = Logger::INFO end |