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

Inheritance: log4net.Appender.FileAppender
Afficher le fichier Open project: TargetProcess/Target-Process-Plugins Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode 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

Méthode 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 méthode

public ActivateOptions ( ) : void
Résultat void

AdjustFileBeforeAppend() protected méthode

protected AdjustFileBeforeAppend ( System.DateTime timeStamp ) : void
timeStamp System.DateTime
Résultat void

Append() protected méthode

protected Append ( log4net.Core.LoggingEvent loggingEvent ) : void
loggingEvent log4net.Core.LoggingEvent
Résultat void

DeleteFile() protected méthode

protected DeleteFile ( string fileName ) : void
fileName string
Résultat void

ExistingInit() protected méthode

protected ExistingInit ( ) : void
Résultat void

FileExists() protected méthode

protected FileExists ( string path ) : bool
path string
Résultat bool

GetNextOutputFileName() protected méthode

protected GetNextOutputFileName ( string fileName ) : string
fileName string
Résultat string

NextCheckDate() protected méthode

protected NextCheckDate ( System.DateTime currentDateTime, RollPoint rollPoint ) : System.DateTime
currentDateTime System.DateTime
rollPoint RollPoint
Résultat System.DateTime

OnClose() protected méthode

protected OnClose ( ) : void
Résultat void

OpenFile() protected méthode

protected OpenFile ( string fileName, bool append ) : void
fileName string
append bool
Résultat void

PluginRollingFileAppender() public méthode

public PluginRollingFileAppender ( ) : System
Résultat System

PluginRollingFileAppender() public méthode

public PluginRollingFileAppender ( PluginRollingFileAppender baseAppender, IActivityLogPathProvider path, Locker locker, string accountName, string profileName ) : System
baseAppender PluginRollingFileAppender
path IActivityLogPathProvider
locker Locker
accountName string
profileName string
Résultat System

RollFile() protected méthode

protected RollFile ( string fromFile, string toFile ) : void
fromFile string
toFile string
Résultat void

RollOverRenameFiles() protected méthode

protected RollOverRenameFiles ( string baseFileName, System.DateTime timeStamp ) : void
baseFileName string
timeStamp System.DateTime
Résultat void

RollOverSize() protected méthode

protected RollOverSize ( System.DateTime timeStamp ) : void
timeStamp System.DateTime
Résultat void

RollOverTime() protected méthode

protected RollOverTime ( bool fileIsOpen ) : void
fileIsOpen bool
Résultat void

SetQWForFiles() protected méthode

protected SetQWForFiles ( TextWriter writer ) : void
writer System.IO.TextWriter
Résultat void