Module: Logging

Included in:
Object
Defined in:
lib/story_teller/logging.rb

Overview

The Logging module

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.log_levelObject



302
303
304
# File 'lib/story_teller/logging.rb', line 302

def log_level
  LoggingConfiguration.config[:level]
end

.log_level=(level) ⇒ Object



297
298
299
# File 'lib/story_teller/logging.rb', line 297

def log_level=(level)
  LoggingConfiguration.config[:level] = LoggingHelpers.symbolize_numeric_log_level(level)
end

Instance Method Details

#log(level = Logging.log_level, log_name = ) ⇒ Object Also known as: logger



307
308
309
# File 'lib/story_teller/logging.rb', line 307

def log(level = Logging.log_level, log_name = LoggingConfiguration.config[:app_name])
  @log ||= LoggingHelpers.init_logger(self, level, log_name)
end