| Class | RADUM::Logger |
| In: |
lib/radum/logger.rb
|
| Parent: | Object |
The Logger class handles all logging output. Any output RADUM generates aside from exceptions goes through the Logger class. The possible log levels are:
The RADUM module automatically instantiates a Logger instance for the module that is accessible through the RADUM::logger method.
Print a long message with the given log level. If the log level is LOG_NONE, the message will be discarded, otherwise the message will be processed as long as the log level is less than or equal to the default log level. The log level defaults to LOG_NORMAL.
# File lib/radum/logger.rb, line 43
43: def log(mesg, log_level = LOG_NORMAL)
44: if @default_level != LOG_NONE && log_level != LOG_NONE &&
45: log_level <= @default_level
46: @output.puts mesg
47: end
48: end