|
1 | 1 | <PlatformSection notSupported={["dotnet.aspnetcore", "dotnet.azure-functions-worker", "dotnet.blazor-webassembly", "dotnet.extensions-logging", "dotnet.maui", "dotnet.serilog"]}> |
2 | 2 |
|
3 | | -Once the feature is enabled on the SDK and the SDK is initialized, you can send logs using the `SentrySdk.Experimental.Logger` APIs. |
| 3 | +Once the feature is enabled on the SDK and the SDK is initialized, you can send logs using the `SentrySdk.Logger` APIs. |
4 | 4 |
|
5 | | -The `SentrySdk.Experimental.Logger` instance exposes six methods that you can use to log messages at different log levels: `Trace`, `Debug`, `Info`, `Warning`, `Error`, and `Fatal`. |
| 5 | +The `SentrySdk.Logger` instance exposes six methods that you can use to log messages at different log levels: `Trace`, `Debug`, `Info`, `Warning`, `Error`, and `Fatal`. |
6 | 6 |
|
7 | 7 | These properties will be sent to Sentry, and can be searched from within the Logs UI, and even added to the Logs views as a dedicated column. |
8 | 8 |
|
9 | 9 | ```csharp |
10 | | -SentrySdk.Experimental.Logger.LogInfo("A simple log message"); |
11 | | -SentrySdk.Experimental.Logger.LogError("A {0} log message", "formatted"); |
| 10 | +SentrySdk.Logger.LogInfo("A simple log message"); |
| 11 | +SentrySdk.Logger.LogError("A {0} log message", "formatted"); |
12 | 12 | ``` |
13 | 13 |
|
14 | 14 | <Alert title="Note"> |
@@ -91,7 +91,7 @@ The SDK automatically provides a set of default attributes attached to your logs |
91 | 91 | Additionally, you can attach custom attributes via a delegate. |
92 | 92 |
|
93 | 93 | ```csharp |
94 | | -SentrySdk.Experimental.Logger.LogWarning(static log => |
| 94 | +SentrySdk.Logger.LogWarning(static log => |
95 | 95 | { |
96 | 96 | log.SetAttribute("my.attribute", "value"); |
97 | 97 | }, "A log message with additional attributes."); |
|
0 commit comments