Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Dec 19, 2023
1 parent 0f7805f commit 6531cd9
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,12 @@ private static void Run(Options options, string[] args)
}

builder.Logging.ClearProviders();

/*
alternative:
"Console": {
"IncludeScopes": true,
"TimestampFormat": "[yyyy-MM-dd HH:mm:ss.ffffzzzz] "
}
*/
builder.Logging.AddOpenTelemetry(o =>
{
o.SetResourceBuilder(ResourceBuilder.CreateEmpty());
o.IncludeFormattedMessage = false;
o.IncludeScopes = false;
o.ParseStateValues = true;
o.IncludeScopes = true;
// can add more exporters, e.g. ApplicationInsights
o.AddConsoleExporter();
});
Expand Down

0 comments on commit 6531cd9

Please sign in to comment.