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 "Dark Flare (JIRA)" <ji...@apache.org> on 2010/11/21 13:08:13 UTC
[jira] Created: (LOG4NET-279) Disabling Log4net
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
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.
[jira] Commented: (LOG4NET-279) Disabling Log4net
Posted by "Ron Grabowski (JIRA)" <ji...@apache.org>.
[ 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.
[jira] [Resolved] (LOG4NET-279) Disabling Log4net
Posted by "Stefan Bodewig (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LOG4NET-279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Bodewig resolved LOG4NET-279.
------------------------------------
Resolution: Invalid
Really a user-list question rather than an issue tracker ticket.
Ron has answered this.
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira