Skip to content

Commit 4384c3c

Browse files
authored
Logging doc to link to ASP.NET Core logging (#3137)
1 parent 62bb66a commit 4384c3c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/logs/getting-started/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ instance, which is then used to do the logging. The log is sent to the
6161
`OpenTelemetryLoggerProvider`, which is configured to export logs to
6262
`ConsoleExporter`. `ConsoleExporter` simply displays it on the console.
6363

64+
Adding logging providers, obtaining `ILogger` instance, etc. could be done
65+
differently based on the application type. For example, [Logging in ASP.NET
66+
Core](https://docs.microsoft.com/aspnet/core/fundamentals/logging#logging-providers)
67+
shows how to do logging in ASP.NET Core, which is also demonstrated in the
68+
[OpenTelemetry Example ASP.NET Core
69+
application](../../../examples/AspNetCore/Program.cs)
70+
6471
## Learn more
6572

6673
* If you want to build a custom exporter/processor/sampler, refer to [extending

0 commit comments

Comments
 (0)