Method: Logging::RootLogger#initialize
- Defined in:
- lib/logging/root_logger.rb
#initialize ⇒ RootLogger
call-seq:
RootLogger.new
Returns a new root logger instance. This method will be called only once when the Repository singleton instance is created.
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/logging/root_logger.rb', line 23 def initialize( ) ::Logging.init unless ::Logging.initialized? @name = 'root' @appenders = [] @additive = false @caller_tracing = false @level = 0 ::Logging::Logger.define_log_methods(self) end |