Sha256: 94b48168096549f6da2586e7446110fa37ed3fb3904278981d1c4c29247280c4
Contents?: true
Size: 730 Bytes
Versions: 31
Compression:
Stored size: 730 Bytes
Contents
# frozen_string_literal: true module Vedeu module Logging # Allows the creation of a lock-less log device. # # @api private # 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' @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
31 entries across 31 versions & 1 rubygems