Module: Logging::Helpers

Included in:
Object
Defined in:
lib/madvertise/ext/logging.rb

Overview

The Helpers module is mixed into the Object class to make the logger available to every object in the system.

Instance Method Summary collapse

Instance Method Details

#logLogger

Retreive and possibly create the global logger object.

Returns:

  • (Logger)

    The logger object.



32
33
34
# File 'lib/madvertise/ext/logging.rb', line 32

def log
  ::Logging.logger ||= ::Logging.create_logger
end