Class: FreecLogger
Instance Method Summary collapse
-
#format_message(severity, timestamp, progname, msg) ⇒ Object
:nodoc:.
-
#highlighted_info(message) ⇒ Object
Prints the message with twenty #‘s before and after it.
Instance Method Details
#format_message(severity, timestamp, progname, msg) ⇒ Object
:nodoc:
4 5 6 |
# File 'lib/freec_logger.rb', line 4 def (severity, , progname, msg) #:nodoc: "#{.strftime("%Y-%m-%d %H:%M:%S")}.#{(.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() info("#{'#'*20} #{} #{'#'*20}") end |