log pattern
This commit is contained in:
2023-08-06 23:00:38 -07:00
parent 79b9daedfa
commit e6a70130c7
13 changed files with 756 additions and 455 deletions

View File

@ -176,7 +176,7 @@ public class Worker : BackgroundService
throw new Exception(_Args[0]);
}
catch (Exception ex)
{ _Logger.LogError(string.Concat(ex.Message, Environment.NewLine, ex.StackTrace)); }
{ _Logger.LogError("{Message}{NewLine}{StackTrace}", ex.Message, Environment.NewLine, ex.StackTrace); }
if (_IsSilent)
_Logger.LogInformation("Done. Bye");
else