Skip to content

Commit 5d8d51f

Browse files
committed
docs(dotnet/logs): update API examples for v5.16.0
1 parent 86f4a2c commit 5d8d51f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

platform-includes/logs/options/dotnet.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#### Experimental.EnableLogs
22

33
<PlatformSection notSupported={["dotnet.aspnetcore", "dotnet.azure-functions-worker", "dotnet.blazor-webassembly", "dotnet.extensions-logging", "dotnet.maui", "dotnet.serilog"]}>
4-
Set to `true` in order to enable the `SentrySdk.Experimental.Logger` APIs.
4+
Set to `true` in order to enable the `SentrySdk.Logger` APIs.
55
</PlatformSection>
66

77
<PlatformSection supported={["dotnet.aspnetcore", "dotnet.azure-functions-worker", "dotnet.blazor-webassembly", "dotnet.extensions-logging", "dotnet.maui"]}>

platform-includes/logs/requirements/dotnet.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ Logs for <PlatformOrGuideName/> are supported in Sentry <PlatformOrGuideName/> S
33
</PlatformSection>
44

55
<PlatformSection supported={["dotnet.serilog"]}>
6-
Logs for <PlatformOrGuideName/> are supported in Sentry <PlatformOrGuideName/> SDK version `5.15.0` and above.
6+
Logs for <PlatformOrGuideName/> are supported in Sentry <PlatformOrGuideName/> SDK version `5.16.0` and above.
77
</PlatformSection>

platform-includes/logs/usage/dotnet.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<PlatformSection notSupported={["dotnet.aspnetcore", "dotnet.azure-functions-worker", "dotnet.blazor-webassembly", "dotnet.extensions-logging", "dotnet.maui", "dotnet.serilog"]}>
22

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.
44

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`.
66

77
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.
88

99
```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");
1212
```
1313

1414
<Alert title="Note">
@@ -91,7 +91,7 @@ The SDK automatically provides a set of default attributes attached to your logs
9191
Additionally, you can attach custom attributes via a delegate.
9292

9393
```csharp
94-
SentrySdk.Experimental.Logger.LogWarning(static log =>
94+
SentrySdk.Logger.LogWarning(static log =>
9595
{
9696
log.SetAttribute("my.attribute", "value");
9797
}, "A log message with additional attributes.");

0 commit comments

Comments
 (0)