From d7ec0c183447ea3028d77d1743abbab36d985064 Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Sat, 26 Jun 2021 18:11:36 +0800 Subject: [PATCH] Add padding and Remove one newline indicating Exception --- Flow.Launcher.Infrastructure/Logger/Log.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Flow.Launcher.Infrastructure/Logger/Log.cs b/Flow.Launcher.Infrastructure/Logger/Log.cs index dc4207279..26e305ace 100644 --- a/Flow.Launcher.Infrastructure/Logger/Log.cs +++ b/Flow.Launcher.Infrastructure/Logger/Log.cs @@ -31,8 +31,8 @@ namespace Flow.Launcher.Infrastructure.Logger const string layout = @"${date:format=HH\:mm\:ss.ffffK} - " + - @"${level:uppercase=true} - ${logger} - ${message:l}" + - @"${onexception:${newline}${newline}" + + @"${level:uppercase=true:padding=-5} - ${logger} - ${message:l}" + + @"${onexception:${newline}" + @"EXCEPTION OCCURS\: ${exception:format=tostring}${newline}}"; var fileTarget = new FileTarget