FileAppender MethodsApache log4net™ SDK Documentation

The FileAppender type exposes the following members.

Methods

  NameDescription
Public methodActivateOptions
Activate the options on the file appender.
(Overrides AppenderSkeletonActivateOptions.)
Public methodAddFilter
Adds a filter to the end of the filter chain.
(Inherited from AppenderSkeleton.)
Protected methodAppend(LoggingEvent)
This method is called by the DoAppend(LoggingEvent) method.
(Overrides TextWriterAppenderAppend(LoggingEvent).)
Protected methodAppend(LoggingEvent)
This method is called by the DoAppend(LoggingEvent) method.
(Overrides TextWriterAppenderAppend(LoggingEvent).)
Public methodClearFilters
Clears the filter list for this appender.
(Inherited from AppenderSkeleton.)
Public methodClose
Closes the appender and release resources.
(Inherited from AppenderSkeleton.)
Protected methodCloseFile
Closes the previously opened file.
Protected methodCloseWriter
Closes the underlying TextWriter.
(Overrides TextWriterAppenderCloseWriter.)
Protected methodStatic memberConvertToFullPath
Convert a path into a fully qualified path.
Public methodDoAppend(LoggingEvent)
Performs threshold checks and invokes filters before delegating actual logging to the subclasses specific [M:Append(LoggingEvent)] method.
(Inherited from AppenderSkeleton.)
Public methodDoAppend(LoggingEvent)
Performs threshold checks and invokes filters before delegating actual logging to the subclasses specific [M:Append(LoggingEvent[])] method.
(Inherited from AppenderSkeleton.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFilterEvent
Test if the logging event should we output by this appender
(Inherited from AppenderSkeleton.)
Protected methodFinalize
Finalizes this appender by calling the implementation's Close method.
(Inherited from AppenderSkeleton.)
Public methodFlush
Flushes any buffered log data.
(Inherited from TextWriterAppender.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodIsAsSevereAsThreshold
Checks if the message level is below this appender's threshold.
(Inherited from AppenderSkeleton.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnClose
Close this appender instance. The underlying stream or writer is also closed.
(Overrides TextWriterAppenderOnClose.)
Protected methodOpenFile
Sets and opens the file where the log output will go. The specified file must be writable.
Protected methodPreAppendCheck
This method determines if there is a sense in attempting to append.
(Inherited from TextWriterAppender.)
Protected methodPrepareWriter
Called to initialize the file writer
(Overrides TextWriterAppenderPrepareWriter.)
Protected methodRenderLoggingEvent(LoggingEvent)
Renders the LoggingEvent to a string.
(Inherited from AppenderSkeleton.)
Protected methodRenderLoggingEvent(TextWriter, LoggingEvent)
Renders the LoggingEvent to a string.
(Inherited from AppenderSkeleton.)
Protected methodReset
Closes any previously opened file and calls the parent's Reset.
(Overrides TextWriterAppenderReset.)
Protected methodSafeOpenFile
Sets and opens the file where the log output will go. The specified file must be writable.
Protected methodSetQWForFiles(Stream)
Sets the quiet writer used for file output
Protected methodSetQWForFiles(TextWriter)
Sets the quiet writer being used.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Protected methodWriteFooter
Writes a footer as produced by the embedded layout's Footer property.
(Overrides TextWriterAppenderWriteFooter.)
Protected methodWriteFooterAndCloseWriter
Writes the footer and closes the underlying TextWriter.
(Inherited from TextWriterAppender.)
Protected methodWriteHeader
Writes a header produced by the embedded layout's Header property.
(Overrides TextWriterAppenderWriteHeader.)
Top
See Also

Reference