mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-12 20:16:34 +00:00
feat: update file sink format to include key if available
This commit is contained in:
parent
244aa26c42
commit
8403265c26
1 changed files with 2 additions and 1 deletions
|
|
@ -133,10 +133,11 @@ namespace PepperDash.Core
|
|||
.WriteTo.Sink(new DebugConsoleSink(new JsonFormatter(renderMessage: true)), levelSwitch: _consoleLoggingLevelSwitch)
|
||||
.WriteTo.Sink(_websocketSink, levelSwitch: _websocketLoggingLevelSwitch)
|
||||
.WriteTo.File(logFilePath,
|
||||
outputTemplate: "[{Timestamp}][{Level}][{Properties.Key}]{Message}{NewLine}",
|
||||
rollingInterval: RollingInterval.Day,
|
||||
restrictedToMinimumLevel: LogEventLevel.Debug,
|
||||
retainedFileCountLimit: CrestronEnvironment.DevicePlatform == eDevicePlatform.Appliance ? 30 : 60
|
||||
);
|
||||
); ;
|
||||
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue