Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
0f06e8f
Add ASP.NET Core logging example
reyang Aug 7, 2023
163b3ab
complete example
reyang Sep 1, 2023
6c08d8d
add more explanation
reyang Sep 1, 2023
3b38af8
reword
reyang Sep 1, 2023
f843084
Merge branch 'main' into reyang/aspnetcore-logging-example
reyang Sep 5, 2023
ff1b1e2
fix link
reyang Sep 5, 2023
2d0c156
update based on review discussions
reyang Sep 6, 2023
1284dc0
Merge branch 'main' into reyang/aspnetcore-logging-example
reyang Sep 6, 2023
5a469a8
cleanup notes
reyang Sep 6, 2023
ee8ef0c
minor fixes
reyang Sep 6, 2023
709fa0e
update output
reyang Sep 6, 2023
b907760
Merge branch 'main' into reyang/aspnetcore-logging-example
reyang Sep 7, 2023
0c20b6a
update the docs
reyang Sep 7, 2023
7fd76a8
wording fix
reyang Sep 7, 2023
6d99545
wording fix
reyang Sep 7, 2023
dcb62f1
Merge branch 'main' into reyang/aspnetcore-logging-example
reyang Sep 8, 2023
f2df0a6
remove default logging providers and simplify the console output
reyang Sep 8, 2023
b67ca88
Merge branch 'main' into reyang/aspnetcore-logging-example
reyang Sep 11, 2023
1dcc8f6
Update docs/logs/getting-started-aspnetcore/README.md
reyang Sep 11, 2023
7763463
format
reyang Sep 11, 2023
db5648d
reword
reyang Sep 11, 2023
0184cc0
reword
reyang Sep 11, 2023
061748d
clarified that console exporter is not supposed to be used in product…
reyang Sep 14, 2023
96da4af
Merge branch 'main' into reyang/aspnetcore-logging-example
reyang Sep 14, 2023
c491e52
Update docs/logs/getting-started-aspnetcore/Program.cs
reyang Sep 15, 2023
f95395f
Merge branch 'main' into reyang/aspnetcore-logging-example
utpilla Sep 15, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update docs/logs/getting-started-aspnetcore/Program.cs
Co-authored-by: Noah Falk <[email protected]>
  • Loading branch information
reyang and noahfalk authored Sep 15, 2023
commit c491e52a00ca8c64e4d6a8032f5bde2f50447cb9
8 changes: 7 additions & 1 deletion docs/logs/getting-started-aspnetcore/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@
var builder = WebApplication.CreateBuilder(args);

// Remove default providers and add OpenTelemetry logging provider
builder.Logging.ClearProviders().AddOpenTelemetry(logging =>
// For instructional purposes only, disable the default .NET console logging provider to
// use the verbose OpenTelemetry console exporter instead. For most development
// and production scenarios the default console provider works well and there is no need to
// clear these providers.
builder.Logging.ClearProviders();

builder.Logging.AddOpenTelemetry(logging =>
{
logging.IncludeScopes = true;

Expand Down