Sha256: c370216f0219fe088aadb7a238deb600f95d9e6d2303c9b32f81109ba56eb441
Contents?: true
Size: 681 Bytes
Versions: 25
Compression:
Stored size: 681 Bytes
Contents
module Vedeu module Logging # Allows the creation of a lock-less log device. # class MonoLogger < ::Logger # Create a trappable Logger instance. # # @param logdev [String|IO] The filename (String) or IO object # (typically STDOUT, STDERR or an open file). # @return [Vedeu::Logging::MonoLogger] 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 end # MonoLogger end # Logging end # Vedeu
Version data entries
25 entries across 25 versions & 1 rubygems