Sha256: 408a8072f550ab3c5310cf1ceae40f179f4157cfad0a01bf9400cef34f2506b7

Contents?: true

Size: 501 Bytes

Versions: 3

Compression:

Stored size: 501 Bytes

Contents

begin
  # Rails 7.x LoggerThreadSafeLevel needs IsolatedExecutionState,
  # but doesn't explicitly require it
  require 'active_support/isolated_execution_state'
rescue LoadError
  # Rails 6.x doesn't
end

require 'active_support/logger'
require 'ougai'
require 'berkeley_library/logging/tagged_logging_extensions'

module BerkeleyLibrary
  module Logging
    class Logger < Ougai::Logger
      include ActiveSupport::LoggerThreadSafeLevel
      include ActiveSupport::LoggerSilence
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
berkeley_library-logging-0.2.7 lib/berkeley_library/logging/logger.rb
berkeley_library-logging-0.2.6.2 lib/berkeley_library/logging/logger.rb
berkeley_library-logging-0.2.6.1 lib/berkeley_library/logging/logger.rb