module Compostr::Logging
Module to extend to get easy access to standard log functions. These are debug, info, warn, error and fatal. All log functions use the Compostr.logger
(which can be customized). A typical client will just `extend Compostr::Logging` .
Public Instance Methods
debug(msg)
click to toggle source
# File lib/compostr/logging.rb, line 9 def debug msg Compostr.logger.debug msg end
error(msg)
click to toggle source
# File lib/compostr/logging.rb, line 18 def error msg Compostr.logger.error msg end
fatal(msg)
click to toggle source
# File lib/compostr/logging.rb, line 21 def fatal msg Compostr.logger.fatal msg end
info(msg)
click to toggle source
# File lib/compostr/logging.rb, line 12 def info msg Compostr.logger.info msg end
warn(msg)
click to toggle source
# File lib/compostr/logging.rb, line 15 def warn msg Compostr.logger.warn msg end