The RollingFileAppender type exposes the following members.

Constructors

  NameDescription
Public methodRollingFileAppender(String)
Constructor
Public methodRollingFileAppender(String, Int64)
Constructor

Methods

  NameDescription
Public methodClose
Close this appender
(Inherited from FileAppender.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
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.)
Public methodLog(Exception)
Log a stack trace
(Overrides FileAppender..::..Log(Exception).)
Public methodLog(String)
Log a message
(Overrides FileAppender..::..Log(String).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOpen (Inherited from FileAppender.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
Protected fieldclosed
True if closed
(Inherited from FileAppender.)
Protected fieldfileStream (Inherited from FileAppender.)
Protected fieldlogger
Destination
(Inherited from FileAppender.)

Properties

  NameDescription
Public propertyFileName
Name of file to log to.
(Inherited from FileAppender.)
Public propertyMaxFileSize
Maximum size of log file in bytes
Public propertyMaxSizeRollBackups
Set the maximum number of backup files to retain. If this is set to zero, the log file will be truncated when it reaches the MaxSize. Backup files are called FileName.1, FileName.2 etc. This value can't be negative. The default is 1 backup file.

See Also