Skip to content

Commit 6a26fdc

Browse files
committed
NLog layout: Added processtime and padding to threadid, level, and logger
1 parent 3835af4 commit 6a26fdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceControl.Infrastructure/LoggingConfigurator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static void ConfigureLogging(LoggingSettings loggingSettings)
2222
}
2323

2424
var nlogConfig = new LoggingConfiguration();
25-
var simpleLayout = new SimpleLayout("${longdate}|${threadid}|${level}|${logger}|${message}${onexception:|${exception:format=tostring}}");
25+
var simpleLayout = new SimpleLayout("${longdate}|${processtime}|${threadid:padding=2}|${level:padding=5}|${logger:padding=70}|${message}${onexception:|${exception:format=tostring}}");
2626

2727
var fileTarget = new FileTarget
2828
{

0 commit comments

Comments
 (0)