From 8403265c2641194ce53ea47d0838fc84d6ce2b35 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Thu, 21 Mar 2024 10:17:20 -0500 Subject: [PATCH] feat: update file sink format to include key if available --- src/Pepperdash Core/Logging/Debug.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Pepperdash Core/Logging/Debug.cs b/src/Pepperdash Core/Logging/Debug.cs index 4b08430..5d46dde 100644 --- a/src/Pepperdash Core/Logging/Debug.cs +++ b/src/Pepperdash Core/Logging/Debug.cs @@ -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 {