module Amigrind::Core::Logging::Mixin

Helper methods to be mixed into classes that must perform logging. (So, most of them.)

Public Instance Methods

debug_log(msg) click to toggle source

Records a log with debug priority. @param msg [String] the message to record to the logger

# File lib/amigrind/core/logging.rb, line 48
def debug_log(msg)
  Amigrind::Core::Logging.logger.debug msg
end
error_log(msg) click to toggle source

Records a log with error priority. @param msg [String] the message to record to the logger

# File lib/amigrind/core/logging.rb, line 66
def error_log(msg)
  Amigrind::Core::Logging.logger.error msg
end
info_log(msg) click to toggle source

Records a log with info priority. @param msg [String] the message to record to theimpo logger

# File lib/amigrind/core/logging.rb, line 54
def info_log(msg)
  Amigrind::Core::Logging.logger.info msg
end
logger() click to toggle source

Returns the logger used by {Amigrind::Core::Logging}.

# File lib/amigrind/core/logging.rb, line 42
def logger
  Amigrind::Core::Logging.logger
end
warn_log(msg) click to toggle source

Records a log with warn priority. @param msg [String] the message to record to the logger

# File lib/amigrind/core/logging.rb, line 60
def warn_log(msg)
  Amigrind::Core::Logging.logger.warn msg
end