CherryPick Adjust Logging Layout

This commit is contained in:
Kevin Zhang 2021-06-25 17:52:42 +08:00 committed by 张弘韬
parent 486048c884
commit caf7cb5188

View file

@ -29,7 +29,11 @@ namespace Flow.Launcher.Infrastructure.Logger
var configuration = new LoggingConfiguration();
const string layout = @"${logger}->${time}|${level}|${message}|${onexception:inner=${logger}->${date:format=HH\:mm\:ss}|${level}|${message}|${newline}${exception:format=toString}${newline}";
const string layout =
@"${date:format=HH\:mm\:ss.ffffK} - " +
@"${level:uppercase=true} - ${logger} - ${message:l}" +
@"${onexception:${newline}${newline}" +
@"EXCEPTION OCCURS\: ${exception:format=tostring}${newline}}";
var fileTarget = new FileTarget
{