FileAppender MembersApache log4net™ SDK Documentation
The FileAppender type exposes the following members.
Constructors

  NameDescription
Public methodFileAppender 
Default constructor
Public methodFileAppender(ILayout, String)Obsolete.
Construct a new appender using the layout and file specified. The file will be appended to.
Public methodFileAppender(ILayout, String, Boolean)Obsolete.
Construct a new appender using the layout, file and append mode.
Back to Top
Methods

  NameDescription
Public methodActivateOptions
Activate the options on the file appender.
(Overrides AppenderSkeleton ActivateOptions .)
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 TextWriterAppender Append(LoggingEvent).)
Protected methodAppend( LoggingEvent )
This method is called by the DoAppend( LoggingEvent ) method.
(Overrides TextWriterAppender Append( 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 OnlineTextWriter.
(Overrides TextWriterAppender CloseWriter .)
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 methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
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 methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodIsAsSevereAsThreshold
Checks if the message level is below this appender's threshold.
(Inherited from AppenderSkeleton.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnClose
Close this appender instance. The underlying stream or writer is also closed.
(Overrides TextWriterAppender OnClose .)
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 TextWriterAppender PrepareWriter .)
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 TextWriterAppender Reset .)
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 methodOnlineToString
Returns a OnlineString that represents the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodWriteFooter
Writes a footer as produced by the embedded layout's Footer property.
(Overrides TextWriterAppender WriteFooter .)
Protected methodWriteFooterAndCloseWriter
Writes the footer and closes the underlying OnlineTextWriter.
(Inherited from TextWriterAppender.)
Protected methodWriteHeader
Writes a header produced by the embedded layout's Header property.
(Overrides TextWriterAppender WriteHeader .)
Back to Top
Properties

  NameDescription
Public propertyAppendToFile
Gets or sets a flag that indicates whether the file should be appended to or overwritten.
Public propertyEncoding
Gets or sets Encoding used to write to the file.
Public propertyErrorHandler
Gets or set the IErrorHandler and the underlying QuietTextWriter, if any, for this appender.
(Inherited from TextWriterAppender.)
Public propertyFile
Gets or sets the path to the file that logging will be written to.
Public propertyFilterHead
The filter chain.
(Inherited from AppenderSkeleton.)
Public propertyImmediateFlush
Gets or set whether the appender will flush at the end of each append operation.
(Inherited from TextWriterAppender.)
Public propertyLayout
Gets or sets the ILayout for this appender.
(Inherited from AppenderSkeleton.)
Public propertyLockingModel
Gets or sets the LockingModel used to handle locking of the file.
Public propertyName
Gets or sets the name of this appender.
(Inherited from AppenderSkeleton.)
Protected propertyQuietWriter
Gets or sets the QuietTextWriter where logging events will be written to.
(Inherited from TextWriterAppender.)
Protected propertyRequiresLayout
This appender requires a log4net.Layout to be set.
(Inherited from TextWriterAppender.)
Public propertySecurityContext
Gets or sets the SecurityContext used to write to the file.
Public propertyThreshold
Gets or sets the threshold Level of this appender.
(Inherited from AppenderSkeleton.)
Public propertyWriter
Sets the OnlineTextWriter where the log output will go.
(Inherited from TextWriterAppender.)
Back to Top
See Also