Top Level Namespace

Includes:
Log4r

Defined Under Namespace

Modules: Crtu, Kernel, Utils Classes: GlobalLogger

Constant Summary collapse

GLOBAL_LOGGER_FOLDER =
File.join(Dir.pwd, 'logs')
GLOBAL_LOGGER_LOG_FILE =
File.join(GLOBAL_LOGGER_FOLDER, 'logfile.log')
LOCAL_LOGGER_LOG_FILE =

Local, class wide logger. Should have include LocalLogger added to the class, logger is used In cucumber remenber to add teh Utils module to the world Usage sample: class A include LocalLogger def method mix_logger.debug “Logging to console and File: myHash: #myHash” end end

It is currently implements three functions: console_logger() - logging to STDOUT file_logger() - logging to FILE mix_logger() - logging to both STDOUT and FILE

if LOCAL_LOGGER_LOG_FILE not specified, “/tmp/” + self.class.to_s + “./log” will be used

File.join(Dir.pwd, 'logs', 'local_logfile.log')