You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "Ron Grabowski (JIRA)" <ji...@apache.org> on 2010/11/26 15:03:13 UTC
[jira] Commented: (LOG4NET-279) Disabling Log4net
[ https://issues.apache.org/jira/browse/LOG4NET-279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12936004#action_12936004 ]
Ron Grabowski commented on LOG4NET-279:
---------------------------------------
log4net.LogManager.Shutdown()
-or-
log4net.LogManager.GetAllRepositories().ToList().ForEach(r => r.Threshold = Level.Off);
> Disabling Log4net
> ------------------
>
> Key: LOG4NET-279
> URL: https://issues.apache.org/jira/browse/LOG4NET-279
> Project: Log4net
> Issue Type: Bug
> Environment: .Net Framework 3.0, C#, Windows XP SP3
> Reporter: Dark Flare
> Priority: Critical
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> Hi,
> I am currently writing a large project which involves using a Large library (Dlls) which allow me to use, show and manipulate map files (mainly tiff).
> I have no access to the dlls source code.
> The dll creates logs using log4net (as i see the log4net dll bundled with it). The logs which are being created are quite large, mainly around 7mbs per txt file.
> I do not wish to create the logs, since they are in the external dll only, i have my own dll module which i use in my Application.
> I wish to completely disable log4net, i dont want it to create any logs whatsoever.
> I read about changing xml files and whatnot but i do not have this xml file in the application, I tried creating it and changed stuff like setting the threshold =OFF.
> but the logs are still being created.
> Is there another way to disable the logs completely ?
> thx
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.