Method: Pancake::Logger#flush
- Defined in:
- lib/pancake/logger.rb
#flush ⇒ Object
Flush the entire buffer to the log object.
105 106 107 108 109 110 |
# File 'lib/pancake/logger.rb', line 105 def flush return unless @buffer.size > 0 @mutex.synchronize do @log.write(@buffer.slice!(0..-1).join('')) end end |