fix: adds text formatter

This commit is contained in:
Neil Dorin
2023-11-20 14:55:30 -07:00
parent 6c51ce5b95
commit 29c3fe22b1
3 changed files with 20 additions and 18 deletions

View File

@@ -11,6 +11,7 @@ using PepperDash.Core.DebugThings;
using Serilog;
using Serilog.Core;
using Serilog.Events;
using Serilog.Formatting.Compact;
namespace PepperDash.Core
{
@@ -106,7 +107,7 @@ namespace PepperDash.Core
{
_consoleLoggingLevelSwitch = new LoggingLevelSwitch(initialMinimumLevel: LogEventLevel.Information);
_websocketLoggingLevelSwitch = new LoggingLevelSwitch();
_websocketSink = new DebugWebsocketSink();
_websocketSink = new DebugWebsocketSink(new CompactJsonFormatter());
// Instantiate the root logger
_logger = new LoggerConfiguration()