Class: Ghaki::Logger::Wrapper::Minor
- Defined in:
- lib/ghaki/logger/wrapper/minor.rb
Overview
Minor mode for info logging.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#began(msg) ⇒ Object
Log that the minor process began.
-
#ended(msg) ⇒ Object
Log that the major process ended.
-
#step(msg) ⇒ Object
Log the minor process step.
Methods inherited from Base
#initialize, #wrap, #wrap!, #wrap_if, #wrap_if!
Constructor Details
This class inherits a constructor from Ghaki::Logger::Wrapper::Base
Instance Method Details
#began(msg) ⇒ Object
Log that the minor process began.
12 13 14 |
# File 'lib/ghaki/logger/wrapper/minor.rb', line 12 def began msg logger.info 'began ' + msg end |
#ended(msg) ⇒ Object
Log that the major process ended.
18 19 20 |
# File 'lib/ghaki/logger/wrapper/minor.rb', line 18 def ended msg logger.info 'ended ' + msg end |
#step(msg) ⇒ Object
Log the minor process step.
24 25 26 |
# File 'lib/ghaki/logger/wrapper/minor.rb', line 24 def step msg logger.info 'step ' + msg end |