Class: ABCSharedLogger

Inherits:
ABCLogger show all
Includes:
Singleton
Defined in:
lib/ABCSharedLogger.rb

Overview

Singleton version of ABCLogger

Constant Summary

Constants inherited from ABCLogger

ABCLogger::LEVELS

Instance Attribute Summary

Attributes inherited from ABCLogger

#enabled, #level, #location, #program

Class Method Summary collapse

Methods inherited from ABCLogger

#close, #log, #log_exception, #log_formatted, #log_formatted_vars, #open, #open_with_date, #set_enabled, #set_level, #set_location, #set_output, #set_program

Class Method Details

.instanceABCSharedLogger

Instance method for ABCSharedLogger

Returns:



12
13
14
15
16
17
18
19
20
# File 'lib/ABCSharedLogger.rb', line 12

def self.instance

  if DEBUG_LOG
    puts '***ABCSharedLogger::instance'
  end

  @@instance ||= new

end