Module: Gear::Firewatch::HelperMethods

Defined in:
lib/gear/firewatch.rb

Instance Method Summary collapse

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(message = nil)
  return logger unless !message.nil?
  logger.info message
end

#loggerObject



64
65
66
# File 'lib/gear/firewatch.rb', line 64

def logger
  Camping::Firewatch.logger
end