Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

FileAppender Members

FileAppender overview

Protected Static (Shared) Methods

ConvertToFullPath Convert a path into a fully qualified path.

Public Instance Constructors

FileAppender Overloaded. Initializes a new instance of the FileAppender class.

Public Instance Properties

AppendToFile Gets or sets a flag that indicates whether the file should be appended to or overwritten.
Encoding Gets or sets Encoding used to write to the file.
ErrorHandler (inherited from TextWriterAppender) Gets or set the IErrorHandler and the underlying QuietTextWriter, if any, for this appender.
File Gets or sets the path to the file that logging will be written to.
FilterHead (inherited from AppenderSkeleton) The filter chain.
ImmediateFlush (inherited from TextWriterAppender) Gets or set whether the appender will flush at the end of each append operation.
Layout (inherited from AppenderSkeleton) Gets or sets the ILayout for this appender.
LockingModel Gets or sets the LockingModel used to handle locking of the file.
Name (inherited from AppenderSkeleton) Gets or sets the name of this appender.
SecurityContext Gets or sets the SecurityContext used to write to the file.
Threshold (inherited from AppenderSkeleton) Gets or sets the threshold Level of this appender.
Writer (inherited from TextWriterAppender) Sets the TextWriter where the log output will go.

Public Instance Methods

ActivateOptions Activate the options on the file appender.
AddFilter (inherited from AppenderSkeleton) Adds a filter to the end of the filter chain.
ClearFilters (inherited from AppenderSkeleton) Clears the filter list for this appender.
Close (inherited from AppenderSkeleton) Closes the appender and release resources.
DoAppend (inherited from AppenderSkeleton)Overloaded. Performs threshold checks and invokes filters before delegating actual logging to the subclasses specific Append method.
Equals (inherited from Object)
GetHashCode (inherited from Object)
GetType (inherited from Object)
ToString (inherited from Object)

Protected Instance Properties

QuietWriter (inherited from TextWriterAppender) Gets or sets the QuietTextWriter where logging events will be written to.
RequiresLayout (inherited from TextWriterAppender) This appender requires a log4net.Layout to be set.

Protected Instance Methods

AppendOverloaded. This method is called by the DoAppend method.
CloseFile Closes the previously opened file.
CloseWriter Closes the underlying TextWriter.
FilterEvent (inherited from AppenderSkeleton) Test if the logging event should we output by this appender
Finalize (inherited from AppenderSkeleton) Finalizes this appender by calling the implementation's Close method.
IsAsSevereAsThreshold (inherited from AppenderSkeleton) Checks if the message level is below this appender's threshold.
MemberwiseClone (inherited from Object)
OnClose (inherited from TextWriterAppender) Close this appender instance. The underlying stream or writer is also closed.
OpenFile Sets and opens the file where the log output will go. The specified file must be writable.
PreAppendCheck (inherited from TextWriterAppender) This method determines if there is a sense in attempting to append.
PrepareWriter Called to initialize the file writer
RenderLoggingEvent (inherited from AppenderSkeleton)Overloaded. Renders the LoggingEvent to a string.
Reset Closes any previously opened file and calls the parent's Reset.
SafeOpenFile Sets and opens the file where the log output will go. The specified file must be writable.
SetQWForFilesOverloaded. Sets the quiet writer used for file output
WriteFooter Writes a footer as produced by the embedded layout's Footer property.
WriteFooterAndCloseWriter (inherited from TextWriterAppender) Writes the footer and closes the underlying TextWriter.
WriteHeader Writes a header produced by the embedded layout's Header property.

See Also

FileAppender Class | log4net.Appender Namespace