vendor/gems/logging-0.9.7/lib/logging/appender.rb
# call-seq:
#    append( event )
#
# Write the given _event_ to the logging destination. The log event will
# be processed through the Layout associated with the Appender.
#
call-seq:
append( event )

Write the given _event_ to the logging destination. The log event will
be processed through the Layout associated with the Appender.
call - seq : append ( event ) Write the given _event_ to the logging destination . The log event will be processed through the Layout associated with the Appender .
def append( event )
    if @closed
      raise RuntimeError,
            "appender '<#{self.class.name}: #{@name}>' is closed"
    end
    unless @level > event.level
      begin
        sync {write(event)}
      rescue StandardError => err
        ::Logging.log_internal(-2) {err}
      end
    end
    self
  end
def append ( event ) if @closed raise RuntimeError , "appender '<#{self.class.name}: #{@name}>' is closed" end unless @level > event . level begin sync { write ( event ) } rescue StandardError => err :: Logging . log_internal ( - 2 ) { err } end end self end
call-seq:
append( event )
call - seq : append ( event )
# only append if the event level is less than or equal to the configured # appender level
event