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

- (Object) debug(*args)

adds a debugging message to the log



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

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

- (Object) error(*args)

adds an error to the log



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

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

- (Object) fatal(*args)

adds a fatal error to the log



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

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

- (Object) info(*args)

adds an info message to the log



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

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

- (Object) logger=(logger)

sets the logger for a class



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

def logger=(logger)
  @logger = logger
end

- (Object) warn(*args)

adds a warning to the log



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

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