Module: Rack::Campfire::Logging
- Included in:
- Rack::Campfire
- Defined in:
- lib/rack/campfire/logging.rb
Instance Method Summary collapse
Instance Method Details
#log_error(error) ⇒ Object
8 9 10 |
# File 'lib/rack/campfire/logging.rb', line 8 def log_error(error) puts "[rack-campfire] #{error}" end |
#log_message(message) ⇒ Object
3 4 5 6 |
# File 'lib/rack/campfire/logging.rb', line 3 def () return unless .user puts "[rack-campfire] #{.user.name}: #{.body}" end |