You will need to look into setting up log4j as you wish - zero logs or 
otherwise. This 'ERROR' is benign and can be ignored - maybe you can talk to 
log4j team about how to hide this message.






On Friday 5 November 2021, 14:51:08 GMT+1, Simon Davey <si...@simondavey.me.uk> 
wrote: 





Hi POI team,

We are testing the POI5.1.0 release for producing Powerpoint slideshows 
and are seeing the following error being emitted when running 
org.apache.poi.examples.xslf.Tutorial1 :

   ERROR StatusLogger Log4j2 could not find a logging implementation. 
Please add log4j-core to the classpath. Using SimpleLogger to log to the 
console...

This goes away if we add log4j-core-2.14.1.jar to the classpath.

Q: Is it expected that we have to add this extra jar file to run POI or 
should it be able to run quietly without?

Note: we don’t want to use any debug logs from POI.

Environment notes:
Same behaviour seen on Windows and Linux
OpenJDK version: zulu8.38.0.13-ca-fx-jdk8.0.212-win_x64

Steps to reproduce (suppose poi-bin-5.1.0-20211024.zip unpacked in 
C:\poi\5.1.0) :

C:\>set 
CLASSPATH=C:\poi\5.1.0\*;C:\poi\5.1.0\lib\*;C:\poi\5.1.0\ooxml-lib\*;C:\poi\5.1.0\auxiliary\*
C:\>java org.apache.poi.examples.xslf.Tutorial1
ERROR StatusLogger Log4j2 could not find a logging implementation. 
Please add log4j-core to the classpath. Using SimpleLogger to log to the 
console...
C:\>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@poi.apache.org
For additional commands, e-mail: user-h...@poi.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@poi.apache.org
For additional commands, e-mail: user-h...@poi.apache.org

Reply via email to