-
Notifications
You must be signed in to change notification settings - Fork 279
Closed
Labels
criCustomer Reported issueCustomer Reported issueenhancementNew feature or requestNew feature or requesttriageissues to be triagedissues to be triaged
Milestone
Description
Today, we support a sink to Application Insights:
{
"telemetry": {
"application-insights": {
"enabled": true,
...
}
}
}
Proposing a file sink for local storage. This is particularly relevant for customers who do not have Application Insights as an option and want more than just Console output.
{
"telemetry": {
"application-insights": {
"enabled": true,
...
},
"local-file": {
"enabled": true,
"file-path": "/path/to/logfile.log",
"max-file-size": 10485760, // 10 MB in bytes
"max-backup-files": 5,
"rollover-interval": "daily" // options: 'daily', 'weekly', 'monthly'
}
}
}
Properties:
- enabled: (Boolean) Enables or disables the local file logging.
- file-path: (String) Specifies the path to the log file.
- max-file-size: (Integer) The maximum size of the log file in bytes before it rolls over.
- max-backup-files: (Integer) The maximum number of backup files to retain.
- rollover-interval: (String) Defines how often the log file should roll over (e.g.,
daily
,weekly
,monthly
).
Related: https://github.com/serilog/serilog-settings-configuration
JerryNixon
Metadata
Metadata
Assignees
Labels
criCustomer Reported issueCustomer Reported issueenhancementNew feature or requestNew feature or requesttriageissues to be triagedissues to be triaged