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

Version Path
vedeu-0.8.12 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.10 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.9 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.8 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.7 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.6 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.5 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.4 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.3 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.2 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.1 lib/vedeu/logging/mono_logger.rb