pcorless / icepdf

PDF Rendering and Viewing API in Java
Apache License 2.0
77 stars 21 forks source link

ICEpdf an Logging #297

Closed adiinfo-77 closed 1 year ago

adiinfo-77 commented 1 year ago

Hi

i try to override the logging behavior of ICEpdf.

As described in http://www.icesoft.org/wiki/display/PDF/Logging, i try to override logging with a configuration file: -Djava.util.logging.config.file=file:/home/adiinfo/icepdflogging.properties at startup of the JVM

The contents of the configuration file is the same as in the WIKI mentioned before.

However, logging stops completely. From the contents of the configuration file, i expected logging at INFO level.

Any thoughts what am i doing wrong?

Thank you Andrej

pcorless commented 1 year ago

It might be how the system property is set, I think it's expecing a string -Djava.util.logging.config.file="/home/adiinfo/icepdflogging.properties"

adiinfo-77 commented 1 year ago

unfortunately, using qoutes makes no difference.

our Swing-Application uses log4j 1.2. Might that be the problem?

Thank you Andrej

adiinfo-77 commented 1 year ago

i figured it out: i had to use jul-to-slf4j bridge. Logging is now redirected to Log4J.

Thank you Andrej