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.32 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.31 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.30 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.29 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.28 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.27 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.26 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.25 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.24 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.23 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.22 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.21 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.20 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.19 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.18 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.17 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.16 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.15 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.14 lib/vedeu/logging/mono_logger.rb
vedeu-0.8.13 lib/vedeu/logging/mono_logger.rb