代码之家  ›  专栏  ›  技术社区  ›  CPK_2011

如何根据需要在所有项目中使用NServiceBus设置性能计数器

  •  1
  • CPK_2011  · 技术社区  · 7 年前

    我正在尝试通过以下链接运行NServiceBus提供的可下载的.Net(4.6.1版)项目

    https://docs.particular.net/samples/step-by-step/
    

    当我尝试运行应用程序时,我得到以下错误。。。

    NServiceBus.PerformanceCounterHelper NServiceBus performance counter for '# of msgs pulled from the input queue /sec' is not set up correctly. To rectify this problem, consult the NServiceBus performance counters documentation.
    

    INFO 来自it中4个项目中每个项目的消息?

    1 回复  |  直到 7 年前
        1
  •  1
  •   wlabaj    7 年前

    the documentation

    要更改日志记录级别,请按照中的说明进行操作 the documentation 。对于NServiceBus版本6,您只需在 Client Server Subscriber 项目:

    var defaultFactory = LogManager.Use<DefaultFactory>();
    defaultFactory.Level(LogLevel.Error);