Class: Vedeu::MonoLogger
- Inherits:
-
Logger
- Object
- Logger
- Vedeu::MonoLogger
- Defined in:
- lib/vedeu/support/log.rb
Overview
Allows the creation of a lock-less log device.
Defined Under Namespace
Classes: LocklessLogDevice
Instance Method Summary collapse
-
#initialize(logdev, shift_age = nil, shift_size = nil) ⇒ MonoLogger
constructor
Create a trappable Logger instance.
Constructor Details
#initialize(logdev, shift_age = nil, shift_size = nil) ⇒ MonoLogger
Create a trappable Logger instance.
22 23 24 25 26 27 28 29 30 |
# File 'lib/vedeu/support/log.rb', line 22 def initialize(logdev, shift_age=nil, shift_size=nil) @level = DEBUG @default_formatter = Formatter.new @formatter = nil @logdev = nil if logdev @logdev = LocklessLogDevice.new(logdev) end end |