Module: Rapis::Logger::Helper

Included in:
Actions
Defined in:
lib/rapis/logger.rb

Class Method Summary collapse

Class Method Details

.debug(msg) ⇒ Object



79
80
81
# File 'lib/rapis/logger.rb', line 79

def debug(msg)
  log(:debug, msg)
end

.fatal(msg) ⇒ Object



75
76
77
# File 'lib/rapis/logger.rb', line 75

def fatal(msg)
  log(:error, msg)
end

.info(msg) ⇒ Object



67
68
69
# File 'lib/rapis/logger.rb', line 67

def info(msg)
  log(:info, msg)
end

.log(level, message) ⇒ Object



62
63
64
65
# File 'lib/rapis/logger.rb', line 62

def log(level, message)
  logger = Rapis::Logger.instance
  logger.send(level, message)
end

.warn(msg) ⇒ Object



71
72
73
# File 'lib/rapis/logger.rb', line 71

def warn(msg)
  log(:warn, msg)
end