You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Fred am Nil (Jira)" <ji...@apache.org> on 2024/09/16 11:47:00 UTC

[jira] [Closed] (LOG4NET-675) DebugAppender does not suppress log writing if DEBUG symbol is not defined

     [ https://issues.apache.org/jira/browse/LOG4NET-675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fred am Nil closed LOG4NET-675.
-------------------------------
    Resolution: Abandoned

Please open an issue at [https://github.com/apache/logging-log4net/issues] in case this is still relevant.

> DebugAppender does not suppress log writing if DEBUG symbol is not defined
> --------------------------------------------------------------------------
>
>                 Key: LOG4NET-675
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-675
>             Project: Log4net
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 1.2.12
>            Reporter: Ken Varn
>            Priority: Major
>
> My C# project uses the DebugAppender in addition to other appenders.  My intent was to only have logs written to the DebugAppender when the DEBUG preprocessor symbol is defined.  However, to my surprise, the DebugAppender still writes the Debug output even if DEBUG symbol isn't defined.  
> I would think that the DebugAppender should follow the same rules as and the System.Diagnostics.Debug.Writexxxx methods in that the [System.Diagnostics.Conditional("DEBUG")]  attribute would be incorporated.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)