Class: F4R::Logger
- Inherits:
-
Logger
- Object
- Logger
- F4R::Logger
- Defined in:
- lib/f4r.rb
Overview
Open ::Logger to add ENCODE and DECODE (debugging) log levels.
Constant Summary collapse
- SEV_LABEL =
%w(DEBUG INFO WARN ERROR FATAL ANY ENCODE DECODE)
Instance Method Summary collapse
- #decode(progname = nil, &block) ⇒ Object
- #encode(progname = nil, &block) ⇒ Object
- #format_severity(severity) ⇒ Object
Instance Method Details
#decode(progname = nil, &block) ⇒ Object
78 79 80 |
# File 'lib/f4r.rb', line 78 def decode(progname = nil, &block) add(7, nil, progname, &block) end |
#encode(progname = nil, &block) ⇒ Object
74 75 76 |
# File 'lib/f4r.rb', line 74 def encode(progname = nil, &block) add(6, nil, progname, &block) end |
#format_severity(severity) ⇒ Object
70 71 72 |
# File 'lib/f4r.rb', line 70 def format_severity(severity) SEV_LABEL[severity] || 'ANY' end |