C# Class Tp.Integration.Plugin.Common.Activity.PluginRollingFileAppender

Inheritance: log4net.Appender.FileAppender
Mostra file Open project: TargetProcess/Target-Process-Plugins Class Usage Examples

Public Methods

Method Description
ActivateOptions ( ) : void
PluginRollingFileAppender ( ) : System
PluginRollingFileAppender ( PluginRollingFileAppender baseAppender, IActivityLogPathProvider path, Locker locker, string accountName, string profileName ) : System

Protected Methods

Method Description
AdjustFileBeforeAppend ( System.DateTime timeStamp ) : void
Append ( log4net.Core.LoggingEvent loggingEvent ) : void
DeleteFile ( string fileName ) : void
ExistingInit ( ) : void
FileExists ( string path ) : bool
GetNextOutputFileName ( string fileName ) : string
NextCheckDate ( System.DateTime currentDateTime, RollPoint rollPoint ) : System.DateTime
OnClose ( ) : void
OpenFile ( string fileName, bool append ) : void
RollFile ( string fromFile, string toFile ) : void
RollOverRenameFiles ( string baseFileName, System.DateTime timeStamp ) : void
RollOverSize ( System.DateTime timeStamp ) : void
RollOverTime ( bool fileIsOpen ) : void
SetQWForFiles ( TextWriter writer ) : void

Private Methods

Method Description
ComputeCheckPeriod ( string datePattern ) : RollPoint
DetermineCurSizeRollBackups ( ) : void
GetExistingFiles ( string baseFilePath ) : IEnumerable
GetFileName ( string accountName, string profileName, string fileName, IActivityLogPathProvider path ) : string
Initialize ( PluginRollingFileAppender baseAppender, IActivityLogPathProvider path ) : void
InitializeFromOneFile ( string baseFile, string curFileName ) : void
InitializeRollBackups ( string baseFile, IEnumerable arrayFiles ) : void
RollOverIfDateBoundaryCrossing ( ) : void

Method Details

ActivateOptions() public method

public ActivateOptions ( ) : void
return void

AdjustFileBeforeAppend() protected method

protected AdjustFileBeforeAppend ( System.DateTime timeStamp ) : void
timeStamp System.DateTime
return void

Append() protected method

protected Append ( log4net.Core.LoggingEvent loggingEvent ) : void
loggingEvent log4net.Core.LoggingEvent
return void

DeleteFile() protected method

protected DeleteFile ( string fileName ) : void
fileName string
return void

ExistingInit() protected method

protected ExistingInit ( ) : void
return void

FileExists() protected method

protected FileExists ( string path ) : bool
path string
return bool

GetNextOutputFileName() protected method

protected GetNextOutputFileName ( string fileName ) : string
fileName string
return string

NextCheckDate() protected method

protected NextCheckDate ( System.DateTime currentDateTime, RollPoint rollPoint ) : System.DateTime
currentDateTime System.DateTime
rollPoint RollPoint
return System.DateTime

OnClose() protected method

protected OnClose ( ) : void
return void

OpenFile() protected method

protected OpenFile ( string fileName, bool append ) : void
fileName string
append bool
return void

PluginRollingFileAppender() public method

public PluginRollingFileAppender ( ) : System
return System

PluginRollingFileAppender() public method

public PluginRollingFileAppender ( PluginRollingFileAppender baseAppender, IActivityLogPathProvider path, Locker locker, string accountName, string profileName ) : System
baseAppender PluginRollingFileAppender
path IActivityLogPathProvider
locker Locker
accountName string
profileName string
return System

RollFile() protected method

protected RollFile ( string fromFile, string toFile ) : void
fromFile string
toFile string
return void

RollOverRenameFiles() protected method

protected RollOverRenameFiles ( string baseFileName, System.DateTime timeStamp ) : void
baseFileName string
timeStamp System.DateTime
return void

RollOverSize() protected method

protected RollOverSize ( System.DateTime timeStamp ) : void
timeStamp System.DateTime
return void

RollOverTime() protected method

protected RollOverTime ( bool fileIsOpen ) : void
fileIsOpen bool
return void

SetQWForFiles() protected method

protected SetQWForFiles ( TextWriter writer ) : void
writer System.IO.TextWriter
return void