Class: Trooper::Logger
- Inherits:
-
Logger
- Object
- Logger
- Trooper::Logger
- Defined in:
- lib/trooper/logger.rb
Constant Summary collapse
- ACTION =
6
- SUCCESS =
7
- STRATEGY =
8
- LABELS =
DEBUG < INFO < WARN < ERROR < FATAL < UNKNOWN < ACTION < SUCCESS < STRATEGY
%w(DEBUG INFO WARN ERROR FATAL ANY ACTION SUCCESS STRATEGY)
Instance Method Summary collapse
- #action(progname = nil, &block) ⇒ Object
- #strategy(progname = nil, &block) ⇒ Object
- #success(progname = nil, &block) ⇒ Object
Instance Method Details
#action(progname = nil, &block) ⇒ Object
15 16 17 |
# File 'lib/trooper/logger.rb', line 15 def action(progname = nil, &block) add(ACTION, nil, progname, &block) end |
#strategy(progname = nil, &block) ⇒ Object
23 24 25 |
# File 'lib/trooper/logger.rb', line 23 def strategy(progname = nil, &block) add(STRATEGY, nil, progname, &block) end |
#success(progname = nil, &block) ⇒ Object
19 20 21 |
# File 'lib/trooper/logger.rb', line 19 def success(progname = nil, &block) add(SUCCESS, nil, progname, &block) end |