Module: Alondra::Log
Constant Summary collapse
- NUMBER_TO_NAME_MAP =
{0=>'DEBUG', 1=>'INFO', 2=>'WARN', 3=>'ERROR', 4=>'FATAL', 5=>'UNKNOWN'}
- NUMBER_TO_COLOR_MAP =
{0=>'0;37', 1=>'32', 2=>'33', 3=>'31', 4=>'31', 5=>'37'}
Instance Method Summary collapse
- #debug(message) ⇒ Object
- #error(message) ⇒ Object
- #fatal(message) ⇒ Object
- #info(message) ⇒ Object
- #unkwon(message) ⇒ Object
- #warn(message) ⇒ Object
Instance Method Details
#debug(message) ⇒ Object
9 10 11 |
# File 'lib/alondra/log.rb', line 9 def debug() add(ActiveSupport::BufferedLogger::Severity::DEBUG, ) end |
#error(message) ⇒ Object
21 22 23 |
# File 'lib/alondra/log.rb', line 21 def error() add(ActiveSupport::BufferedLogger::Severity::ERROR, ) end |
#fatal(message) ⇒ Object
25 26 27 |
# File 'lib/alondra/log.rb', line 25 def fatal() add(ActiveSupport::BufferedLogger::Severity::FATAL, ) end |
#info(message) ⇒ Object
13 14 15 |
# File 'lib/alondra/log.rb', line 13 def info() add(ActiveSupport::BufferedLogger::Severity::INFO, ) end |
#unkwon(message) ⇒ Object
29 30 31 |
# File 'lib/alondra/log.rb', line 29 def unkwon() add(ActiveSupport::BufferedLogger::Severity::UNKNOWN, ) end |
#warn(message) ⇒ Object
17 18 19 |
# File 'lib/alondra/log.rb', line 17 def warn() add(ActiveSupport::BufferedLogger::Severity::WARN, ) end |