Skip to content

Commit

Permalink
NLog layout: Added processtime and padding to threadid, level, and l…
Browse files Browse the repository at this point in the history
…ogger
  • Loading branch information
ramonsmits committed Feb 3, 2025
1 parent c8c16dd commit fd0df00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ServiceControl.Infrastructure/LoggingConfigurator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static void ConfigureLogging(LoggingSettings loggingSettings)
}

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

var fileTarget = new FileTarget
{
Expand Down

0 comments on commit fd0df00

Please sign in to comment.