module Interferon::Logging
Public Class Methods
configure_logger_for(classname)
click to toggle source
# File lib/interferon/logging.rb, line 18 def self.configure_logger_for(classname) logger = Logger.new(STDERR) logger.level = Logger::INFO unless ENV['DEBUG'] logger.progname = classname logger end
Public Instance Methods
log()
click to toggle source
# File lib/interferon/logging.rb, line 14 def log @logger ||= Logging.configure_logger_for(self.class.name) end
statsd()
click to toggle source
# File lib/interferon/logging.rb, line 6 def statsd @statsd ||= Statsd.new( Statsd::DEFAULT_HOST, Statsd::DEFAULT_PORT, namespace: 'alerts_framework' ) end