Skip to content

Commit 45a1425

Browse files
committed
Include processtime in logging
1 parent 9e17654 commit 45a1425

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServiceControl.Infrastructure/LoggingConfigurator.cs

Lines changed: 2 additions & 2 deletions
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}|${level}|${logger}|${message}${onexception:|${exception:format=tostring}}");
2626

2727
var fileTarget = new FileTarget
2828
{
@@ -70,7 +70,7 @@ public static void ConfigureLogging(LoggingSettings loggingSettings)
7070
FileName = Path.Combine(loggingSettings.LogPath, "metrics/${shortdate}.csv"),
7171
ArchiveFileName = Path.Combine(loggingSettings.LogPath, "metrics/logfile.{#}.csv"),
7272
ArchiveNumbering = ArchiveNumberingMode.DateAndSequence,
73-
Layout = new SimpleLayout("${longdate};${level};${logger};${message}"),
73+
Layout = new SimpleLayout("${longdate};${processtime};${level};${logger};${message}"),
7474
MaxArchiveFiles = 14,
7575
ArchiveAboveSize = 30 * megaByte,
7676
CreateDirs = true

0 commit comments

Comments
 (0)