Module: Gear::Firewatch::HelperMethods
- Defined in:
- lib/gear/firewatch.rb
Instance Method Summary collapse
-
#log(message = nil) ⇒ Object
#log A helper method to log stuff.
- #logger ⇒ Object
Instance Method Details
#log(message = nil) ⇒ Object
#log A helper method to log stuff. @message: String, Default: nil, An optional value used to directly log rather than requesting the logger
71 72 73 74 |
# File 'lib/gear/firewatch.rb', line 71 def log( = nil) return logger unless !.nil? logger.info end |