Module: Toiler::Actor::Utils::ActorLogging
- Included in:
- Fetcher
- Defined in:
- lib/toiler/actor/utils/actor_logging.rb
Overview
Provides helper methods for logging
Instance Method Summary collapse
- #debug(msg) ⇒ Object
- #error(msg) ⇒ Object
- #fatal(msg) ⇒ Object
- #info(msg) ⇒ Object
- #warn(msg) ⇒ Object
Instance Method Details
#debug(msg) ⇒ Object
16 17 18 |
# File 'lib/toiler/actor/utils/actor_logging.rb', line 16 def debug(msg) log Logger::Severity::DEBUG, msg end |
#error(msg) ⇒ Object
8 9 10 |
# File 'lib/toiler/actor/utils/actor_logging.rb', line 8 def error(msg) log Logger::Severity::ERROR, msg end |
#fatal(msg) ⇒ Object
24 25 26 |
# File 'lib/toiler/actor/utils/actor_logging.rb', line 24 def fatal(msg) log Logger::Severity::FATAL, msg end |
#info(msg) ⇒ Object
12 13 14 |
# File 'lib/toiler/actor/utils/actor_logging.rb', line 12 def info(msg) log Logger::Severity::INFO, msg end |
#warn(msg) ⇒ Object
20 21 22 |
# File 'lib/toiler/actor/utils/actor_logging.rb', line 20 def warn(msg) log Logger::Severity::WARN, msg end |