From caf7cb5188f4bfb72de42301444c5fc430fca57c Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Fri, 25 Jun 2021 17:52:42 +0800 Subject: [PATCH] CherryPick Adjust Logging Layout --- Flow.Launcher.Infrastructure/Logger/Log.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher.Infrastructure/Logger/Log.cs b/Flow.Launcher.Infrastructure/Logger/Log.cs index a19c0c365..dc4207279 100644 --- a/Flow.Launcher.Infrastructure/Logger/Log.cs +++ b/Flow.Launcher.Infrastructure/Logger/Log.cs @@ -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 {