An <AuditRoutes> element contains the following configuration keys:
Key Name | Description |
---|---|
minimum-level |
Sets the minimum LogLevel that is written to this route. Possible Values
|
File |
Path to the log file including the file name. The path supports environment variables. Example %composerdir%\Composer.AUDIT.txt Note: The file name is extended by the creation date.
|
FileRollInterval |
Enables file rolling in the specified time interval. Possible Values
|
FileRollOnSize |
Enables file rolling when the FileByteLimit is reached. If the key is present, the file will roll on size unless the value is explicitly set to False. Possible Values
|
FileByteLimit |
Sets the maximum file size for any individual log file. When FileRollOnSize is not available or set to False, additional messages are dropped until the next rolling interval, if applicable. The default file byte limit is 1 GB. To allow for unlimited file sizes, set the value to an empty string. |
FileCountLimit |
Sets the maximum number of files to retain when using rolling files. To allow unlimited files, use an empty string. |
OutputFormat |
Defines the output format for a log file line. Possible Values
The default value is Json. |
AllowUnknownKeys |
If the key is present, unknown configuration keys are passed to the Serilog library. |