Method: Logsly::Logging182::Appenders::Buffering#close
- Defined in:
- lib/logsly/logging182/appenders/buffering.rb
#close(*args) ⇒ Object
Close the message buffer by flushing all log events to the appender. If a periodic flusher thread is running, shut it down and allow it to exit.
49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/logsly/logging182/appenders/buffering.rb', line 49 def close( *args ) flush if @periodic_flusher @periodic_flusher.stop @periodic_flusher = nil Thread.pass end super(*args) end |