class Giblog
The logger used from within giblish
Public Class Methods
logger()
click to toggle source
returns the application-wide logger instance.
# File lib/giblish/utils.rb, line 23 def self.logger unless defined? @logger puts "!!!! Error: Trying to access logger before setup !!!!" puts caller exit end @logger end
setup()
click to toggle source
bootstrap the application-wide logger object
# File lib/giblish/utils.rb, line 15 def self.setup return if defined? @logger @logger = Logger.new($stdout) @logger.formatter = GiblogFormatter.new end