Class: FreecLogger

Inherits:
Logger show all
Defined in:
lib/freec_logger.rb

Instance Method Summary collapse

Instance Method Details

#format_message(severity, timestamp, progname, msg) ⇒ Object

:nodoc:



4
5
6
# File 'lib/freec_logger.rb', line 4

def format_message(severity, timestamp, progname, msg)  #:nodoc:
  "#{timestamp.strftime("%Y-%m-%d %H:%M:%S")}.#{(timestamp.usec / 1000.0).round} #{severity} #{msg}\n"
end

#highlighted_info(message) ⇒ Object

Prints the message with twenty #‘s before and after it.



9
10
11
# File 'lib/freec_logger.rb', line 9

def highlighted_info(message)
  info("#{'#'*20} #{message} #{'#'*20}")
end