Interface IFileLoggerConfiguration
Interface for the logfile configuration
Inherited Members
Namespace:Dapplo.Log.LogFile
Assembly:Dapplo.Log.LogFile.dll
Syntax
public interface IFileLoggerConfiguration : ILoggerConfiguration
Properties
| Improve this Doc View SourceArchiveCompress
Compress the archive
Declaration
bool ArchiveCompress { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
ArchiveCount
The amount of archived files which are allowed. The oldest is removed.
Declaration
int ArchiveCount { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
ArchiveDirectoryPath
The path of the archived file
Declaration
string ArchiveDirectoryPath { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ArchiveExtension
The extension of archived file, default this is .log.gz
Declaration
string ArchiveExtension { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ArchiveFilenamePattern
Change the format for the archived filename
Declaration
string ArchiveFilenamePattern { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ArchiveHistory
The history of archived files, this could e.g. be stored in a configuration
Declaration
IList<string> ArchiveHistory { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IList<System.String> |
DirectoryPath
Change the format for the filename, the possible arguments are documented in the . Environment variablen are also expanded.
Declaration
string DirectoryPath { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Extension
The extension of log file, default this is ".log"
Declaration
string Extension { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
FilenamePattern
Change the format for the filename, as soon as the filename changes, the previous is archived.
Declaration
string FilenamePattern { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
MaxBufferSize
Limit the internal stringbuilder size,
Declaration
int MaxBufferSize { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Preformat
Setting this to true will format the message in the context of the write call. If this is set to false, the default, the formatting is done when writing to the file. First makes the call slower, last could introduce problems with UI owned objects.
Declaration
bool Preformat { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Processname
Name of the application, if null it will be created
Declaration
string Processname { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
WriteInterval
Specify how long the background task can wait until it starts writing log entries
Declaration
int WriteInterval { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |