Module: Docgenerator::Logger_INFO
- Defined in:
- lib/docgenerator/document.rb
Overview
Extension for Log4r::Logger (#INFO)
Instance Method Summary collapse
-
#INFO(*args) ⇒ Object
INFO is a important information.
-
#INFO? ⇒ Boolean
Print INFO-message, if logging level is WARN.
Instance Method Details
#INFO(*args) ⇒ Object
INFO is a important information. It’s like a warning, but outputted as information.
17 18 19 20 21 22 23 |
# File 'lib/docgenerator/document.rb', line 17 def INFO(*args) return unless INFO? level = self.level #remember previous level self.level = Log4r::INFO #temporary level change self.info(*args) self.level = level end |
#INFO? ⇒ Boolean
Print INFO-message, if logging level is WARN
10 11 12 |
# File 'lib/docgenerator/document.rb', line 10 def INFO?() Log4r::WARN >= self.level end |