Add padding and Remove one newline indicating Exception

This commit is contained in:
Kevin Zhang 2021-06-26 18:11:36 +08:00 committed by 张弘韬
parent caf7cb5188
commit d7ec0c1834

View file

@ -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