class UniformNotifier::CustomizedLogger
Public Class Methods
_out_of_channel_notify( data )
click to toggle source
# File lib/uniform_notifier/customized_logger.rb, line 9 def self._out_of_channel_notify( data ) message = data.values.compact.join("\n") @logger.warn message end
active?()
click to toggle source
# File lib/uniform_notifier/customized_logger.rb, line 5 def self.active? @logger end
setup(logdev)
click to toggle source
# File lib/uniform_notifier/customized_logger.rb, line 14 def self.setup(logdev) require 'logger' @logger = Logger.new( logdev ) def @logger.format_message( severity, timestamp, progname, msg ) "#{timestamp.strftime("%Y-%m-%d %H:%M:%S")}[#{severity}] #{msg}" end end