Module: Bowline::Logging
- Included in:
- Desktop, Desktop::Bridge::Message, Desktop::JS::Script
- Defined in:
- lib/bowline/logging.rb
Overview
To be included in classes to allow some basic logging.
Class Method Summary collapse
- .debug(msg = nil) ⇒ Object
-
.log_error(e = $!) ⇒ Object
Log an error backtrace if debugging is activated.
- .trace(msg = nil) ⇒ Object
Instance Method Summary collapse
- #debug(msg = nil) ⇒ Object
-
#log_error(e = $!) ⇒ Object
Log an error backtrace if debugging is activated.
- #trace(msg = nil) ⇒ Object
Class Method Details
.debug(msg = nil) ⇒ Object
10 11 12 |
# File 'lib/bowline/logging.rb', line 10 def debug(msg=nil) Bowline.logger.debug(msg) end |
Instance Method Details
#debug(msg = nil) ⇒ Object
10 11 12 |
# File 'lib/bowline/logging.rb', line 10 def debug(msg=nil) Bowline.logger.debug(msg) end |