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

Version Path
vedeu-0.6.50 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.49 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.48 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.47 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.46 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.45 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.44 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.43 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.42 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.41 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.40 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.39 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.38 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.37 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.36 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.35 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.34 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.33 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.32 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.31 lib/vedeu/logging/mono_logger.rb