From d3670da3ab8884e9e88149c296ae58affb5ead13 Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Fri, 9 Mar 2018 13:35:13 +0100 Subject: [PATCH] Improve message in mail logger. Refers to #3 --- ATxService/AutoTx.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ATxService/AutoTx.cs b/ATxService/AutoTx.cs index 7cb34b9..3a941c9 100644 --- a/ATxService/AutoTx.cs +++ b/ATxService/AutoTx.cs @@ -147,8 +147,10 @@ namespace ATxService var subject = $"{ServiceName} - {Environment.MachineName} - Admin Notification"; var body = $"Notification from '{_config.HostAlias}' [{Environment.MachineName}] (via NLog)\n\n" + - $"{LogFormatDefault}\n\nNOTE: messages of the same log level won't be sent via email for the\n" + - $"next {_config.AdminNotificationDelta} minutes, please check the corresponding log file!"; + $"{LogFormatDefault}\n\n" + + "NOTE: messages of the same log level won't be sent via email for the\n" + + $"next {_config.AdminNotificationDelta} minutes (or a service restart)," + + "please check the corresponding log file!"; var logConfig = LogManager.Configuration; -- GitLab