I gave up on log4j and switched to slf4j-simple. Now it is only logging WARN and above.

implementation 'org.slf4j:slf4j-simple:1.7.+'


On 10/7/21 11:39 AM, Shawn Heisey wrote:
On 10/7/21 7:37 AM, Michael Conrad wrote:
    <AsyncLogger name="org.apache.zookeeper" level="WARN"/>
    <AsyncLogger name="org.apache.hadoop" level="WARN"/>
    <AsyncLogger name="org.apache.solr" level="WARN"/>

<snip>

There is so much useless logging happening I can't read the output for any useful information.

If that log4j2.xml file is really taking effect, there should not be much logging.  Solr and SolrJ are noisy at INFO but very quiet at WARN.

Can you provide us with an excerpt from the verbose logging you see?

If you start your program with "-Dlog4j.configurationFile=/path/to/log4j2.xml" on the commandline you can create your own logging config that does exactly what you want.

Thanks,
Shawn


Reply via email to