Skip to content
Closed
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions content/en/logs/log_collection/csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ Then, initialize the logger directly in your application. Ensure that you [add y

```csharp
using (var log = new LoggerConfiguration()
.WriteTo.DatadogLogs("<API_KEY>", configuration: new DatadogConfiguration(){ Url = "{{< region-param key="http_endpoint" code="true" >}}" })
.WriteTo.DatadogLogs("<API_KEY>", configuration: new DatadogConfiguration(){ Url = "https://{{< region-param key="http_endpoint" code="true" >}}" })
.CreateLogger())
{
// Some code
Expand Down Expand Up @@ -563,4 +563,4 @@ New logs are now directly sent to Datadog.
[17]: /logs/log_configuration/pipelines/?tab=source
[18]: /api/latest/logs/#send-logs
[19]: https://www.nuget.org/packages/Serilog.Sinks.Datadog.Logs
[20]: /glossary/#tail
[20]: /glossary/#tail
Loading