log4net SDK Reference |

# RollingFileAppender Members

RollingFileAppender overview

#### Public Instance Constructors

RollingFileAppender Constructor | Initializes a new instance of the RollingFileAppender class.

#### Public Instance Properties

AppendToFile (inherited from FileAppender) | Gets or sets a flag that indicates whether the file should be appended to or overwritten.
CountDirection | Gets or sets the rolling file count direction.
DatePattern | Gets or sets the date pattern to be used for generating file names when rolling over on date.
Encoding (inherited from FileAppender) | 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 (inherited from FileAppender) | 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 (inherited from FileAppender) | Gets or sets the LockingModel used to handle locking of the file.
MaxFileSize | Gets or sets the maximum size that the output file is allowed to reach before being rolled over to backup files.
MaximumFileSize | Gets or sets the maximum size that the output file is allowed to reach before being rolled over to backup files.
MaxSizeRollBackups | Gets or sets the maximum number of backup files that are kept before the oldest is erased.
Name (inherited from AppenderSkeleton) | Gets or sets the name of this appender.
RollingStyle | Gets or sets the rolling style.
SecurityContext (inherited from FileAppender) | Gets or sets the SecurityContext used to write to the file.
StaticLogFileName | Gets or sets a value indicating whether to always log to the same 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 | Initialize the appender based on the options set
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) | Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) | Gets the Type of the current instance.
ToString (inherited from Object) | Returns a String that represents the current 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

AdjustFileBeforeAppend | Performs any required rolling before outputting the next event
Append | Overloaded. Write out an array of logging events.
CloseFile (inherited from FileAppender) | Closes the previously opened file.
CloseWriter (inherited from FileAppender) | Closes the underlying TextWriter.
DeleteFile | Deletes the specified file if it exists.
ExistingInit | Initializes based on existing conditions at time of ActivateOptions.
FileExists | Test if a file exists at a specified path
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.
GetNextOutputFileName | Get the current output file name
IsAsSevereAsThreshold (inherited from AppenderSkeleton) | Checks if the message level is below this appender's threshold.
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object.
NextCheckDate | Get the start time of the next window for the current rollpoint
OnClose (inherited from TextWriterAppender) | Close this appender instance. The underlying stream or writer is also closed.
OpenFile | Creates and opens the file for logging. If StaticLogFileName is false then the fully qualified name is determined and used.
PreAppendCheck (inherited from TextWriterAppender) | This method determines if there is a sense in attempting to append.
PrepareWriter (inherited from FileAppender) | Called to initialize the file writer
RenderLoggingEvent (inherited from AppenderSkeleton) | Overloaded. Renders the LoggingEvent to a string.
Reset (inherited from FileAppender) | Closes any previously opened file and calls the parent's Reset.
RollFile | Renames file fromFile to file toFile.
RollOverRenameFiles | Implements file roll.
RollOverSize | Implements file roll base on file size.
RollOverTime | Rollover the file(s) to date/time tagged file(s).
SafeOpenFile (inherited from FileAppender) | Sets and opens the file where the log output will go. The specified file must be writable.
SetQWForFiles | Overloaded. Sets the quiet writer being used.
SetQWForFiles (inherited from FileAppender) | Overloaded. Sets the quiet writer being used.
WriteFooter (inherited from FileAppender) | 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 (inherited from FileAppender) | Writes a header produced by the embedded layout's Header property.

#### See Also

RollingFileAppender Class | log4net.Appender Namespace