Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-675

DebugAppender does not suppress log writing if DEBUG symbol is not defined

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.2.12
    • None
    • Appenders
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            varnk Ken Varn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: