Class: RelicLink::Logger

Inherits:
Logger
  • Object
show all
Defined in:
lib/relic_link/logger.rb

Overview

Default logging class.

Class Method Summary collapse

Class Method Details

.default::Logger

Default logger, used when a logger is not provided in config. Default log output is STDOUT and log level is Logger::WARN.

Returns:

  • (::Logger)


12
13
14
15
16
17
18
# File 'lib/relic_link/logger.rb', line 12

def self.default
  return @default if @default

  logger = new STDOUT
  logger.level = Logger::WARN
  @default = logger
end