vendor/gems/logging-0.9.7/lib/logging/appenders/buffering.rb
def add_to_buffer( event )
      str = event.instance_of?(::Logging::LogEvent) ?
            layout.format(event) : event.to_s
      return if str.empty?

      buffer << str
      flush if buffer.length >= auto_flushing || immediate?(event)

      self
    end
# Append the given event to the message buffer. The event can be either
# a string or a LogEvent object.
#
Append the given event to the message buffer. The event can be either
a string or a LogEvent object.
Append the given event to the message buffer . The event can be either a string or a LogEvent object .
def add_to_buffer( event )
      str = event.instance_of?(::Logging::LogEvent) ?
            layout.format(event) : event.to_s
      return if str.empty?
      buffer << str
      flush if buffer.length >= auto_flushing || immediate?(event)
      self
    end
def add_to_buffer ( event ) str = event . instance_of? ( :: Logging :: LogEvent ) ? layout . format ( event ) : event . to_s return if str . empty? buffer << str flush if buffer . length >= auto_flushing || immediate? ( event ) self end
Append the given event to the message buffer.
Append the given event to the message buffer .
event