Module: Cabin::Mixins::Logger
- Included in:
- Channel
- Defined in:
- lib/cabin/mixins/logger.rb
Overview
This module implements methods that act somewhat like Ruby’s Logger class It is included in Cabin::Channel
Constant Summary collapse
- LEVELS =
{ :fatal => 0, :error => 1, :warn => 2, :info => 3, :debug => 4 }
- BACKTRACE_RE =
/([^:]+):([0-9]+)(?::in `(.*)')?/
Instance Attribute Summary collapse
-
#level ⇒ Object
Returns the value of attribute level.
Class Method Summary collapse
Instance Method Summary collapse
-
#log(message, data = {}) ⇒ Object
def log_with_level.
Instance Attribute Details
#level ⇒ Object
Returns the value of attribute level.
17 18 19 |
# File 'lib/cabin/mixins/logger.rb', line 17 def level @level end |
Class Method Details
Instance Method Details
#log(message, data = {}) ⇒ Object
def log_with_level
93 94 95 |
# File 'lib/cabin/mixins/logger.rb', line 93 def log(, data={}) _log(, data) end |