Skip to content

simpleway2016/JackRemoteLog

Repository files navigation

JackRemoteLog

JackRemoteLog 是一个基于.Net,支持全文检索的远程日志组件,支持链路追踪功能

Jack.RemoteLog.WebApi 是服务器端。

使用

部署好服务器端,工程中引用nuget包:Jack.RemoteLog 在配置文件中,设置服务器url

  "Logging": {
    "ServerUrl": "http://127.0.0.1:9000",
    "ContextName": "YourContextName",
    "LogLevel": {
      "Default": "Debug",
      "Microsoft.AspNetCore": "Warning"
    },
    "Console": {
      "LogLevel": {
        "Default": "Information"
      }
    }
  }

注册组件:

            services.AddLogging(builder =>
            {
                builder.AddConfiguration(configuration.GetSection("Logging"));
                builder.AddConsole();
                builder.UseJackRemoteLogger(configuration);
            });

部署文档:http://jms.jacktan.cn/#/doc/38/2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published