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

  NameDescription
Public methodRollingFileAppender
Initializes a new instance of the RollingFileAppender class.
Back to Top
Methods

  NameDescription
Public methodActivateOptions
Initialize the appender based on the options set
(Overrides FileAppender ActivateOptions .)
Public methodAddFilter
Adds a filter to the end of the filter chain.
(Inherited from AppenderSkeleton.)
Protected methodAdjustFileBeforeAppend
Performs any required rolling before outputting the next event
Protected methodAppend(LoggingEvent)
Write out a logging event.
(Overrides FileAppender Append(LoggingEvent).)
Protected methodAppend( LoggingEvent )
Write out an array of logging events.
(Overrides FileAppender 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.
(Inherited from FileAppender.)
Protected methodCloseWriter
Closes the underlying OnlineTextWriter.
(Inherited from FileAppender.)
Protected methodDeleteFile
Deletes the specified file if it exists.
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 methodExistingInit
Protected methodFileExists
Test if a file exists at a specified path
Protected methodFilterEvent
Test if the logging event should we output by this appender
(Inherited from AppenderSkeleton.)
Protected methodFinalize
Cleans up all resources used by this appender.
(Overrides AppenderSkeleton Finalize .)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Protected methodGetNextOutputFileName
Get the current output file name
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 methodNextCheckDate
Get the start time of the next window for the current rollpoint
Protected methodOnClose
Close this appender instance. The underlying stream or writer is also closed.
(Inherited from FileAppender.)
Protected methodOpenFile
Creates and opens the file for logging. If StaticLogFileName is false then the fully qualified name is determined and used.
(Overrides FileAppender OpenFile(String, Boolean).)
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
(Inherited from FileAppender.)
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 .
(Inherited from FileAppender.)
Protected methodRollFile
Renames file fromFile to file toFile.
Protected methodRollOverRenameFiles
Implements file roll.
Protected methodRollOverSize
Implements file roll base on file size.
Protected methodRollOverTime
Rollover the file(s) to date/time tagged file(s).
Protected methodSafeOpenFile
Sets and opens the file where the log output will go. The specified file must be writable.
(Inherited from FileAppender.)
Protected methodSetQWForFiles(Stream)
Sets the quiet writer used for file output
(Inherited from FileAppender.)
Protected methodSetQWForFiles(TextWriter)
Sets the quiet writer being used.
(Overrides FileAppender SetQWForFiles(TextWriter).)
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.
(Inherited from FileAppender.)
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.
(Inherited from FileAppender.)
Back to Top
Properties

  NameDescription
Public propertyAppendToFile
Gets or sets a flag that indicates whether the file should be appended to or overwritten.
(Inherited from FileAppender.)
Public propertyCountDirection
Gets or sets the rolling file count direction.
Public propertyDatePattern
Gets or sets the date pattern to be used for generating file names when rolling over on date.
Public propertyDateTimeStrategy
Gets or sets the strategy for determining the current date and time. The default implementation is to use LocalDateTime which internally calls through to DateTime.Now. DateTime.UtcNow may be used on frameworks newer than .NET 1.0 by specifying UniversalDateTime.
Public propertyEncoding
Gets or sets Encoding used to write to the file.
(Inherited from FileAppender.)
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.
(Inherited from FileAppender.)
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.
(Inherited from FileAppender.)
Public propertyMaxFileSize
Gets or sets the maximum size that the output file is allowed to reach before being rolled over to backup files.
Public propertyMaximumFileSize
Gets or sets the maximum size that the output file is allowed to reach before being rolled over to backup files.
Public propertyMaxSizeRollBackups
Gets or sets the maximum number of backup files that are kept before the oldest is erased.
Public propertyName
Gets or sets the name of this appender.
(Inherited from AppenderSkeleton.)
Public propertyPreserveLogFileNameExtension
Gets or sets a value indicating whether to preserve the file name extension when rolling.
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 propertyRollingStyle
Gets or sets the rolling style.
Public propertySecurityContext
Gets or sets the SecurityContext used to write to the file.
(Inherited from FileAppender.)
Public propertyStaticLogFileName
Gets or sets a value indicating whether to always log to the same 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