Sha256: e56facf69df4db833293b45073701092253e8df4160031ee764fc56251196960

Contents?: true

Size: 637 Bytes

Versions: 7

Compression:

Stored size: 637 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)
        @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

7 entries across 7 versions & 1 rubygems

Version Path
vedeu-0.6.14 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.13 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.12 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.11 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.10 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.9 lib/vedeu/logging/mono_logger.rb
vedeu-0.6.8 lib/vedeu/logging/mono_logger.rb