Class: Vedeu::Logging::MonoLogger
- Inherits:
-
Logger
- Object
- Logger
- Vedeu::Logging::MonoLogger
- Defined in:
- lib/vedeu/logging/mono_logger.rb
Overview
Allows the creation of a lock-less log device.
Instance Method Summary collapse
-
#initialize(logdev) ⇒ Vedeu::Logging::MonoLogger
constructor
Create a trappable Logger instance.
Constructor Details
#initialize(logdev) ⇒ Vedeu::Logging::MonoLogger
Create a trappable Logger instance.
14 15 16 17 18 19 20 21 |
# File 'lib/vedeu/logging/mono_logger.rb', line 14 def initialize(logdev) @progname = 'Vedeu'.freeze @level = Logger::DEBUG @default_formatter = Logger::Formatter.new @formatter = nil @logdev = Vedeu::Logging::LocklessLogDevice.new(logdev) if logdev end |