Class: Nezu::CustomLogFormatter
- Inherits:
-
Object
- Object
- Nezu::CustomLogFormatter
- Defined in:
- lib/nezu.rb
Overview
all these nice colorful log entries are created here if you don`t like them just override its #call method
Constant Summary collapse
- TIME_FORMAT =
"%Y-%m-%d %H:%M:%S."
- HOST =
%x(hostname).chomp
- APP =
File.basename(Dir.pwd)
Instance Method Summary collapse
Instance Method Details
#call(severity, time, progname, msg) ⇒ Object
74 75 76 77 78 79 80 |
# File 'lib/nezu.rb', line 74 def call(severity, time, progname, msg) @severity = severity @time = time @progname = progname @msg = msg formatted_msg end |