C# Class Catel.Logging.FileLogListener

Log listener which writes all data to a file.
Inheritance: BatchLogListenerBase
ファイルを表示 Open project: Catel/Catel Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
DetermineFilePath ( string filePath ) : string

Determines the real file path.

WriteBatch ( System batchEntries ) : Task

Writes the batch of entries.

Private Methods

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

Method Details

DetermineFilePath() protected method

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

FileLogListener() public method

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.
return System

FileLogListener() public method

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.
return System

WriteBatch() protected method

Writes the batch of entries.
protected WriteBatch ( System batchEntries ) : Task
batchEntries System The batch entries.
return Task