diff --git a/src/ServiceControl.Audit/Auditing/AuditIngestion.cs b/src/ServiceControl.Audit/Auditing/AuditIngestion.cs index d0552dd9a0..255b804ebb 100644 --- a/src/ServiceControl.Audit/Auditing/AuditIngestion.cs +++ b/src/ServiceControl.Audit/Auditing/AuditIngestion.cs @@ -78,7 +78,7 @@ FailedAuditImport FailedMessageFactory(FailedTransportMessage msg) Task OnCriticalError(string failure, Exception exception) { - logger.Warn($"OnCriticalError. '{failure}'", exception); + logger.Fatal($"OnCriticalError. '{failure}'", exception); return watchdog.OnFailure(failure); } diff --git a/src/ServiceControl.Audit/Infrastructure/LoggingConfigurator.cs b/src/ServiceControl.Audit/Infrastructure/LoggingConfigurator.cs index ab0d55274e..3f5aa0d455 100644 --- a/src/ServiceControl.Audit/Infrastructure/LoggingConfigurator.cs +++ b/src/ServiceControl.Audit/Infrastructure/LoggingConfigurator.cs @@ -25,7 +25,7 @@ public static void ConfigureLogging(LoggingSettings loggingSettings) var version = FileVersionInfo.GetVersionInfo(typeof(Bootstrapper).Assembly.Location).ProductVersion; var nlogConfig = new LoggingConfiguration(); - var simpleLayout = new SimpleLayout("${longdate}|${threadid}|${level}|${logger}|${message}${onexception:${newline}${exception:format=tostring}}"); + var simpleLayout = new SimpleLayout("${longdate}|${threadid}|${level}|${logger}|${message}${onexception:|${exception:format=tostring}}"); var header = $@"------------------------------------------------------------- ServiceControl Audit Version: {version} -------------------------------------------------------------"; diff --git a/src/ServiceControl.Monitoring/Infrastructure/LoggingConfigurator.cs b/src/ServiceControl.Monitoring/Infrastructure/LoggingConfigurator.cs index ef6f22d6d7..8279757ad8 100644 --- a/src/ServiceControl.Monitoring/Infrastructure/LoggingConfigurator.cs +++ b/src/ServiceControl.Monitoring/Infrastructure/LoggingConfigurator.cs @@ -25,7 +25,7 @@ public static void Configure(Settings settings, bool logToConsole) var version = FileVersionInfo.GetVersionInfo(typeof(Bootstrapper).Assembly.Location).ProductVersion; var nlogConfig = new LoggingConfiguration(); - var simpleLayout = new SimpleLayout("${longdate}|${threadid}|${level}|${logger}|${message}${onexception:${newline}${exception:format=tostring}}"); + var simpleLayout = new SimpleLayout("${longdate}|${threadid}|${level}|${logger}|${message}${onexception:|${exception:format=tostring}}"); var header = $@"------------------------------------------------------------- ServiceControl Monitoring Version: {version} Selected Transport: {settings.TransportType} diff --git a/src/ServiceControl/LoggingConfigurator.cs b/src/ServiceControl/LoggingConfigurator.cs index f624632bc7..537be6172a 100644 --- a/src/ServiceControl/LoggingConfigurator.cs +++ b/src/ServiceControl/LoggingConfigurator.cs @@ -26,7 +26,7 @@ public static void ConfigureLogging(LoggingSettings loggingSettings) var version = FileVersionInfo.GetVersionInfo(typeof(Bootstrapper).Assembly.Location).ProductVersion; var nlogConfig = new LoggingConfiguration(); - var simpleLayout = new SimpleLayout("${longdate}|${threadid}|${level}|${logger}|${message}${onexception:${newline}${exception:format=tostring}}"); + var simpleLayout = new SimpleLayout("${longdate}|${threadid}|${level}|${logger}|${message}${onexception:|${exception:format=tostring}}"); var header = $@"------------------------------------------------------------- ServiceControl Version: {version} -------------------------------------------------------------"; diff --git a/src/ServiceControl/Operations/ErrorIngestion.cs b/src/ServiceControl/Operations/ErrorIngestion.cs index 62fc68ed6c..fc3b40f46e 100644 --- a/src/ServiceControl/Operations/ErrorIngestion.cs +++ b/src/ServiceControl/Operations/ErrorIngestion.cs @@ -194,7 +194,7 @@ async Task OnMessage(MessageContext messageContext) Task OnCriticalError(string failure, Exception exception) { - logger.Warn($"OnCriticalError. '{failure}'", exception); + logger.Fatal($"OnCriticalError. '{failure}'", exception); return watchdog.OnFailure(failure); }