Class: Log
- Inherits:
-
Object
- Object
- Log
- Defined in:
- lib/yodel/models/core/log/log.rb
Instance Method Summary collapse
- #debug(message) ⇒ Object
- #error(message) ⇒ Object
- #fatal(message) ⇒ Object
- #info(message) ⇒ Object
-
#initialize(site) ⇒ Log
constructor
A new instance of Log.
- #warn(message) ⇒ Object
Constructor Details
#initialize(site) ⇒ Log
Returns a new instance of Log.
4 5 6 |
# File 'lib/yodel/models/core/log/log.rb', line 4 def initialize(site) @site = site end |
Instance Method Details
#debug(message) ⇒ Object
8 9 10 |
# File 'lib/yodel/models/core/log/log.rb', line 8 def debug() build_log_entry(LogEntry::DEBUG, ) end |
#error(message) ⇒ Object
20 21 22 |
# File 'lib/yodel/models/core/log/log.rb', line 20 def error() build_log_entry(LogEntry::ERROR, ) end |
#fatal(message) ⇒ Object
24 25 26 |
# File 'lib/yodel/models/core/log/log.rb', line 24 def fatal() build_log_entry(LogEntry::FATAL, ) end |