Code Monkey home page Code Monkey logo

Comments (6)

fanliang11 avatar fanliang11 commented on May 24, 2024

谢谢关注社区版surging, UseNLog配置已过时,可以通过添加引用和基于Rootpath扫描加载Surging.Core.Nlog引擎组件。如果是多种类型的日志组件,请基于surgingsetting 文件配置using 配置节,把NLogModule添加进去

    "Packages": [
      {
        "TypeName": "EnginePartModule",
        "Using": "${UseEngineParts}|ServiceProxyModule;ProtokollwandlerModule;DotNettyModule;NLogModule;ConsulModule;MessagePackModule;WSProtocolModule;MqttProtocolModule;EventBusRabbitMQModule;CachingModule;KestrelHttpModule;SwaggerModule;ApiGeteWayModule;SkywalkingModule;KestrelNLogModule;GrpcModule;ApolloModule;LiveStreamModule;"
      }
    ]
'''

from surging.

TeslaHan avatar TeslaHan commented on May 24, 2024

谢谢关注社区版surging, UseNLog配置已过时,可以通过添加引用和基于Rootpath扫描加载Surging.Core.Nlog引擎组件。如果是多种类型的日志组件,请基于surgingsetting 文件配置using 配置节,把NLogModule添加进去

    "Packages": [
      {
        "TypeName": "EnginePartModule",
        "Using": "${UseEngineParts}|ServiceProxyModule;ProtokollwandlerModule;DotNettyModule;NLogModule;ConsulModule;MessagePackModule;WSProtocolModule;MqttProtocolModule;EventBusRabbitMQModule;CachingModule;KestrelHttpModule;SwaggerModule;ApiGeteWayModule;SkywalkingModule;KestrelNLogModule;GrpcModule;ApolloModule;LiveStreamModule;"
      }
    ]
'''

谢谢,你能抽时间回复。
我这里也通过setting文件配置using配置节,启动的时候,也能加载,但,还是不能打印日志,也通过引用的方式把nlog引入进来,但服务里面还是不能打印日志,麻烦再看一下。谢谢!
image
image

from surging.

fanliang11 avatar fanliang11 commented on May 24, 2024

你的using 里有SerilogModule ,这样会造成日志组件冲突,还有需要注意的是,如果你引用了
Surging.Core.KestrelHttpServer 组件,就需要附加引用Surging.Core.Kestrel.Nlog, 还需要在配置节using中添加KestrelNLogModule

from surging.

TeslaHan avatar TeslaHan commented on May 24, 2024

你的using 里有SerilogModule ,这样会造成日志组件冲突,还有需要注意的是,如果你引用了
Surging.Core.KestrelHttpServer 组件,就需要附加引用Surging.Core.Kestrel.Nlog, 还需要在配置节using中添加KestrelNLogModule

你好,我去掉SerilogModule 模块,谢谢提醒,使用KestrelHttpServer,需要附件ketrel.Nlog模块。现在配置如下
image
日志在服务中依旧无法打印
image

from surging.

fanliang11 avatar fanliang11 commented on May 24, 2024

如果还有问题,我就不知道了,我这里没有问题,代码是从github下载的,几十家企业用户没有反应日志问题
图片
图片

from surging.

TeslaHan avatar TeslaHan commented on May 24, 2024

谢谢!已查找到未引用Protocol.WS服务

from surging.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.