如何阻止NServiceBus记录我的Azure存储连接字符串?
24/05/2014 10:55:21 NServiceBus.Unicast.Subscriptions.MessageDrivenSubscriptions.MessageDrivenSubscriptionManager: 订阅Test.Service.Messages.Events.BalanceUpdatedEvent, Test.Service.Messages,Version = 1.0.0.0,Culture = neutral, 发布者队列中的PublicKeyToken = null 测试@ DefaultEndpointsProtocol = https和帐户名= XXX; AccountKey = YYY
答案 0 :(得分:0)
Log4net有一个过滤机制,允许您使用StringMatchFilter指定不应记录哪些内容。也许这有用吗?
<filter type="log4net.Filter.StringMatchFilter">
<stringToMatch value="DefaultEndpointsProtocol=https;AccountName=" />
<acceptOnMatch value="false" />
</filter>