Skip to content

Commit

Permalink
OutputTemplate applied to console logging to allow valid JSON output.
Browse files Browse the repository at this point in the history
  • Loading branch information
janstaelensskyline committed Dec 21, 2023
1 parent 0de0685 commit 5625b58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CICD.Tools.CatalogUpload/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private static async Task<int> ProcessWithRegistrationAsync(string pathToArtifac

try
{
LoggerConfiguration logConfig = new LoggerConfiguration().WriteTo.Console();
LoggerConfiguration logConfig = new LoggerConfiguration().WriteTo.Console(outputTemplate: "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}");
if (!isDebug)
{
logConfig.MinimumLevel.Information();
Expand Down

0 comments on commit 5625b58

Please sign in to comment.