Module: ALib::Logging

Included in:
AbstractMain
Defined in:
lib/alib-0.5.1/logging.rb

Overview

the logging module extends classes (both at instance and class level) with many methods useful for logging. it relies on the builtin Logger class

Defined Under Namespace

Modules: LogClassMethods, LogMethods, LoggerExt

Constant Summary collapse

EOL =
"\n"
DIV0 =
("." * 79) << EOL
DIV1 =
("-" * 79) << EOL
DIV2 =
("=" * 79) << EOL
DIV3 =
("#" * 79) << EOL
SEC0 =
("." * 16) << EOL
SEC1 =
("-" * 16) << EOL
SEC2 =
("=" * 16) << EOL
SEC3 =
("#" * 16) << EOL

Class Method Summary collapse

Class Method Details

.append_features(c) ⇒ Object

–{{{



193
194
195
196
197
198
199
200
201
202
203
204
205
206
# File 'lib/alib-0.5.1/logging.rb', line 193

def append_features c
#--{{{
  return self if((LogMethods === c) or (LogClassMethods === c)) 
  ret = super rescue(return(self))
  c.module_eval{
    extend LogClassMethods
    include LogMethods
    extend LogMethods
  }
  #c.extend LogMethods
  #c.extend LogClassMethods
  ret
#--}}}
end