Sha256: 3abfd9c771e53e702435fe76b7016da64bab1d636fd649b8d3613eb1f13b6059

Contents?: true

Size: 1.51 KB

Versions: 5

Compression:

Stored size: 1.51 KB

Contents

require 'semantic_logger/core_ext/thread'
require 'semantic_logger/version'
require 'semantic_logger/semantic_logger'

# @formatter:off
module SemanticLogger
  autoload :AnsiColors,         'semantic_logger/ansi_colors'
  autoload :Appender,           'semantic_logger/appender'
  autoload :Base,               'semantic_logger/base'
  autoload :DebugAsTraceLogger, 'semantic_logger/debug_as_trace_logger'
  autoload :Formatters,         'semantic_logger/formatters'
  autoload :Log,                'semantic_logger/log'
  autoload :Logger,             'semantic_logger/logger'
  autoload :Loggable,           'semantic_logger/loggable'
  autoload :Processor,          'semantic_logger/processor'
  autoload :Subscriber,         'semantic_logger/subscriber'
  autoload :Utils,              'semantic_logger/utils'

  module Concerns
    autoload :Compatibility,    'semantic_logger/concerns/compatibility'
  end

  module Metric
    autoload :NewRelic,          'semantic_logger/metric/new_relic'
    autoload :Signalfx,          'semantic_logger/metric/signalfx'
    autoload :Statsd,            'semantic_logger/metric/statsd'
  end

  if defined?(JRuby)
    module JRuby
      autoload :GarbageCollectionLogger, 'semantic_logger/jruby/garbage_collection_logger'
    end
  end
end
# @formatter:on

# Flush all appenders at exit, waiting for outstanding messages on the queue
# to be written first.
at_exit do
  # Cannot close since test frameworks only run at exit, at which point the logging would already be closed.
  SemanticLogger.flush
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
semantic_logger-4.3.1 lib/semantic_logger.rb
semantic_logger-4.3.0 lib/semantic_logger.rb
semantic_logger-4.2.2 lib/semantic_logger.rb
semantic_logger-4.2.1 lib/semantic_logger.rb
semantic_logger-4.2.0 lib/semantic_logger.rb