vendor/gems/logging-0.9.7/lib/logging/appender.rb
# call-seq:
#    close( footer = true )
#
# Close the appender and writes the layout footer to the logging
# destination if the _footer_ flag is set to +true+. Log events will
# no longer be written to the logging destination after the appender
# is closed.
#
call-seq:
close( footer = true )

Close the appender and writes the layout footer to the logging
destination if the _footer_ flag is set to +true+. Log events will
no longer be written to the logging destination after the appender
is closed.
call - seq : close ( footer = true ) Close the appender and writes the layout footer to the logging destination if the _footer_ flag is set to + true + . Log events will no longer be written to the logging destination after the appender is closed .
def close( footer = true )
    return self if @closed
    ::Logging::Appender.remove(@name)
    @closed = true
    sync {flush}
    if footer
      footer = @layout.footer
      unless footer.nil? || footer.empty?
        begin
          sync {write(footer)}
        rescue StandardError => err
          ::Logging.log_internal(-2) {err}
        end
      end
    end
    self
  end
def close ( footer = true ) return self if @closed :: Logging :: Appender . remove ( @name ) @closed = true sync { flush } if footer footer = @layout . footer unless footer . nil? || footer . empty? begin sync { write ( footer ) } rescue StandardError => err :: Logging . log_internal ( - 2 ) { err } end end end self end
call-seq:
close( footer = true )
call - seq : close ( footer = true )
footer