Class: Celluloid::SMTP::Logging
- Inherits:
-
Object
- Object
- Celluloid::SMTP::Logging
- Includes:
- Celluloid
- Defined in:
- lib/celluloid/smtp/logging.rb
Instance Method Summary collapse
Instance Method Details
#exception(ex, note) ⇒ Object
14 15 16 17 |
# File 'lib/celluloid/smtp/logging.rb', line 14 def exception(ex, note) error("#{note}: #{ex} (#{ex.class})") ex.backtrace.each { |line| error("* #{line}") } end |
#log(method, *args) ⇒ Object
10 11 12 |
# File 'lib/celluloid/smtp/logging.rb', line 10 def log(method, *args) Celluloid::SMTP::Constants::LOGGER.send(method,*args) end |