Skip to content

Commit caf7cb5

Browse files
committed
CherryPick Adjust Logging Layout
1 parent 486048c commit caf7cb5

File tree

1 file changed

+5
-1
lines changed
  • Flow.Launcher.Infrastructure/Logger

1 file changed

+5
-1
lines changed

Flow.Launcher.Infrastructure/Logger/Log.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ static Log()
2929

3030
var configuration = new LoggingConfiguration();
3131

32-
const string layout = @"${logger}->${time}|${level}|${message}|${onexception:inner=${logger}->${date:format=HH\:mm\:ss}|${level}|${message}|${newline}${exception:format=toString}${newline}";
32+
const string layout =
33+
@"${date:format=HH\:mm\:ss.ffffK} - " +
34+
@"${level:uppercase=true} - ${logger} - ${message:l}" +
35+
@"${onexception:${newline}${newline}" +
36+
@"EXCEPTION OCCURS\: ${exception:format=tostring}${newline}}";
3337

3438
var fileTarget = new FileTarget
3539
{

0 commit comments

Comments
 (0)