开发者

Log4Net. How to disable internal debug

I got some test console application with log4net and AdoNetAppender.

When I launch application I have log4net debug info in console(log4net:ERROR [AdoNetAppender] Could not open database connection) I initialize AdoNetAppender Co开发者_如何学PythonnnectionString via code.

When I set <log4net debug="false"> it doesn't help.

I check log4net.Util.LogLog.InternalDebugging; log4net.Util.LogLog.QuietMode; properties after I read config file and configure log4net repository. They are both 'False'.

Why debug disabling doesn't work ?


Maybe you have it enabled with application settings in app.config:

<appSettings>
    <add key="log4net.Internal.Debug" value="true"/>
</appSettings>

This seems to ovverride the setting on the log4net node.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜