C# Class Catel.Logging.FileLogListener

Log listener which writes all data to a file.
Inheritance: BatchLogListenerBase
Afficher le fichier Open project: Catel/Catel Class Usage Examples

Méthodes publiques

Méthode Description
FileLogListener ( Assembly assembly = null ) : System

Initializes a new instance of the FileLogListener class.

FileLogListener ( string filePath, int maxSizeInKiloBytes, Assembly assembly = null ) : System

Initializes a new instance of the FileLogListener class.

Méthodes protégées

Méthode Description
DetermineFilePath ( string filePath ) : string

Determines the real file path.

WriteBatch ( System batchEntries ) : Task

Writes the batch of entries.

Private Methods

Méthode Description
CreateCopyOfCurrentLogFile ( string filePath ) : void
Initialize ( bool initFilePath, Assembly assembly = null ) : void

Method Details

DetermineFilePath() protected méthode

Determines the real file path.
protected DetermineFilePath ( string filePath ) : string
filePath string The file path to examine.
Résultat string

FileLogListener() public méthode

Initializes a new instance of the FileLogListener class.
public FileLogListener ( Assembly assembly = null ) : System
assembly Assembly The assembly to load the product info from. If null, the entry assembly will be used.
Résultat System

FileLogListener() public méthode

Initializes a new instance of the FileLogListener class.
The is null or whitespace.
public FileLogListener ( string filePath, int maxSizeInKiloBytes, Assembly assembly = null ) : System
filePath string The file path.
maxSizeInKiloBytes int The max size in kilo bytes.
assembly Assembly The assembly to load the product info from. If null, the entry assembly will be used.
Résultat System

WriteBatch() protected méthode

Writes the batch of entries.
protected WriteBatch ( System batchEntries ) : Task
batchEntries System The batch entries.
Résultat Task