开发者

Listening to non-verbose log entries only with enterprise library

开发者 https://www.devze.com 2022-12-15 17:41 出处:网络
I\'m marking verbose log entries like this: Logger.Write(new LogEntry { Message = \"Using debug quote id...\",

I'm marking verbose log entries like this:

Logger.Write(new LogEntry 
{ 
    Message = "Using debug quote id...", 
    Severity = TraceEventType.Verbose 
});
开发者_如何学编程

How do I configure enterprise library event listener to log non-verbose events only


You need to set your trace switch to only listen for Warning or Error level events. You can do this in your application .config file.

Check out this article or this one from MSDN.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号