Uploaded image for project: 'FtpServer'
  1. FtpServer
  2. FTPSERVER-452

Can't lower log level

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.0.6
    • None
    • None
    • a Maven project

    Description

      I have a custom log4j.properties file in my project's src/test/resources/, setting the Threshold to WARN. This correctly alters the log level for my logging statements.

      crawler/src/test/resources/log4j.properties:

      ```
      log4j.rootCategory=DEBUG, stdout

      log4j.appender.stdout.Threshold=WARN

      log4j.appender.stdout=org.apache.log4j.ConsoleAppender
      log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

      log4j.appender.stdout.layout.ConversionPattern=%5p [%t] %m%n
      ```

      But where my unit tests reference ftpserver, I'm still seeing lots of INFO level output. I thought my log4j.properties was supposed to capture and override other loggers. Could someone help me tweak my log4j.properties to hide INFO logs from ftpserver?

      I'm using slf4j-simple 1.7.5.

      Attachments

        Activity

          People

            Unassigned Unassigned
            apennebaker42six Andrew Pennebaker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: