module ReVIEW::Loggable
Attributes
logger[R]
Public Instance Methods
app_error(msg)
click to toggle source
# File lib/review/loggable.rb, line 9 def app_error(msg) raise ApplicationError, msg end
debug(msg, location: nil)
click to toggle source
# File lib/review/loggable.rb, line 23 def debug(msg, location: nil) logger.debug(msg, location: location) end
error(msg, location: nil)
click to toggle source
# File lib/review/loggable.rb, line 5 def error(msg, location: nil) logger.error(msg, location: location) end
error!(msg, location: nil)
click to toggle source
# File lib/review/loggable.rb, line 13 def error!(msg, location: nil) logger.error(msg, location: location) exit 1 end
warn(msg, location: nil)
click to toggle source
# File lib/review/loggable.rb, line 19 def warn(msg, location: nil) logger.warn(msg, location: location) end