Module: Endeca::Logging
- Included in:
- Endeca
- Defined in:
- lib/endeca/logging.rb
Instance Method Summary collapse
-
#log(message) ⇒ Object
Log and benchmark the workings of a single block.
Instance Method Details
#log(message) ⇒ Object
Log and benchmark the workings of a single block. Will only be called if Endeca.benchmark is true
5 6 7 8 |
# File 'lib/endeca/logging.rb', line 5 def log() logger = Endeca.logger logger.debug() if Endeca.debug? && logger end |