People
log pattern
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user