lib/semantic_logger.rb in semantic_logger-0.5.3 vs lib/semantic_logger.rb in semantic_logger-0.6.0
- old
+ new
@@ -1,16 +1,19 @@
# Include sync_attr dependency
require 'sync_attr'
module SemanticLogger
+ autoload :Base, 'semantic_logger/base'
autoload :Logger, 'semantic_logger/logger'
module Appender
- autoload :File, 'semantic_logger/appender/file'
- autoload :Logger, 'semantic_logger/appender/logger'
- # Only load the MongoDB appender if the Mongo Ruby Driver is loaded
+ autoload :File, 'semantic_logger/appender/file'
+ autoload :Wrapper, 'semantic_logger/appender/wrapper'
autoload :MongoDB, 'semantic_logger/appender/mongodb'
end
+
+ # Logging levels in order with most detailed logging first
+ LEVELS = [:trace, :debug, :info, :warn, :error, :fatal]
end
if defined?(Rails)
require 'semantic_logger/railtie'
end