Sha256: 52c1fa6b6037a06e7de751e2f2948f9ff3ce89f002c6ef8d7291e96ef31422cd

Contents?: true

Size: 1.17 KB

Versions: 2

Compression:

Stored size: 1.17 KB

Contents

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

# @formatter:off
module SemanticLogger
  autoload :Base,               'semantic_logger/base'
  autoload :Logger,             'semantic_logger/logger'
  autoload :Loggable,           'semantic_logger/loggable'
  autoload :DebugAsTraceLogger, 'semantic_logger/debug_as_trace_logger'

  module Appender
    autoload :Base,     'semantic_logger/appender/base'
    autoload :File,     'semantic_logger/appender/file'
    autoload :Wrapper,  'semantic_logger/appender/wrapper'
    autoload :MongoDB,  'semantic_logger/appender/mongodb'
    autoload :Syslog,   'semantic_logger/appender/syslog'
    autoload :NewRelic, 'semantic_logger/appender/new_relic'
    autoload :Splunk,   'semantic_logger/appender/splunk'
    autoload :Bugsnag,   'semantic_logger/appender/bugsnag'
  end
  # @formatter:on

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

# Flush all appenders at exit, waiting for outstanding messages on the queue
# to be written first
at_exit do
  SemanticLogger.flush
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
semantic_logger-2.17.0 lib/semantic_logger.rb
semantic_logger-2.16.0 lib/semantic_logger.rb