Module: Rubix::Logs
- Included in:
- Connection, Model, Model, Sender
- Defined in:
- lib/rubix/log.rb
Instance Method Summary collapse
- #debug(*args) ⇒ Object
- #error(*args) ⇒ Object
- #fatal(*args) ⇒ Object
- #info(*args) ⇒ Object
- #log_name ⇒ Object
- #warn(*args) ⇒ Object
Instance Method Details
#debug(*args) ⇒ Object
57 58 59 60 |
# File 'lib/rubix/log.rb', line 57 def debug *args return unless Rubix.logger Rubix.logger.log(Logger::DEBUG, args.join(' '), log_name) end |
#error(*args) ⇒ Object
72 73 74 75 |
# File 'lib/rubix/log.rb', line 72 def error *args return unless Rubix.logger Rubix.logger.log(Logger::ERROR, args.join(' '), log_name) end |
#fatal(*args) ⇒ Object
77 78 79 80 |
# File 'lib/rubix/log.rb', line 77 def fatal *args return unless Rubix.logger Rubix.logger.log(Logger::FATAL, args.join(' '), log_name) end |
#info(*args) ⇒ Object
62 63 64 65 |
# File 'lib/rubix/log.rb', line 62 def info *args return unless Rubix.logger Rubix.logger.log(Logger::INFO, args.join(' '), log_name) end |
#log_name ⇒ Object
53 54 55 |
# File 'lib/rubix/log.rb', line 53 def log_name @log_name end |