我已经在本地计算机上设置了 DataDog,并尝试从我的 asp.net mvc 应用程序登录。这是我迄今为止所做的事情,
子应用程序_Start()
Dim config = New DatadogConfiguration(url:="intake.logs.datadoghq.com", port:=443, useSSL:=True, useTCP:=True)
_log = New LoggerConfiguration() _
.MinimumLevel.Debug() _
.WriteTo.DatadogLogs("datadog-key", "csharp", "Application", "DESKTOP-R4FT16J", New String() {"ecom", "serilog"}, config) _
.CreateLogger()
Log.Logger = _log
_log.Information("Serilog initiated for Ecom...")
Serilog Sink 根据文档看起来很简单,但一定缺少一些东西?
对于使用日本端点登陆此线程的任何人,配置为
Dim config = New DatadogConfiguration(url:="https://http-intake.logs.ap1.datadoghq.com", port:=443)