Module: SiteFuel::Logging

Included in:
Configuration, External::AbstractExternalProgram, Processor::AbstractProcessor, SiteFuelRuntime
Defined in:
lib/sitefuel/SiteFuelLogger.rb

Overview

mixin for adding logging functionality to any class, typically included by every SiteFuel class

Instance Method Summary collapse

Instance Method Details

#debug(*args) ⇒ Object

adds a debugging message to the log



140
# File 'lib/sitefuel/SiteFuelLogger.rb', line 140

def debug(*args) @logger.debug(*args); end

#error(*args) ⇒ Object

adds an error to the log



128
# File 'lib/sitefuel/SiteFuelLogger.rb', line 128

def error(*args) @logger.error(*args); end

#fatal(*args) ⇒ Object

adds a fatal error to the log



124
# File 'lib/sitefuel/SiteFuelLogger.rb', line 124

def fatal(*args) @logger.fatal(*args); end

#info(*args) ⇒ Object

adds an info message to the log



136
# File 'lib/sitefuel/SiteFuelLogger.rb', line 136

def info(*args) @logger.info(*args); end

#logger=(logger) ⇒ Object

sets the logger for a class



118
119
120
# File 'lib/sitefuel/SiteFuelLogger.rb', line 118

def logger=(logger)
  @logger = logger
end

#warn(*args) ⇒ Object

adds a warning to the log



132
# File 'lib/sitefuel/SiteFuelLogger.rb', line 132

def warn(*args) @logger.warn(*args); end