2017-08-07 45 views
1

我想通过以下链接如何设置性能计数器与NServiceBus在所有的项目按规定

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

当我试图运行下载的.Net(版本4.6.1)由NServiceBus提供项目运行该应用程序,我得到下面的错误...

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. 

如何在没有从每个在其中的4个项目中获得INFO信息运行的代码?

回答

1

要解决性能计数器的问题,请查看the documentation以了解如何安装计数器并让我知道是否解决了您的问题。

要更改日志记录级别,请按照the documentation中的说明进行操作。对于NServiceBus 6版本,你只需要在主方法开始在ClientServerSubscriber项目,添加以下代码:

var defaultFactory = LogManager.Use<DefaultFactory>(); 
defaultFactory.Level(LogLevel.Error); 
相关问题