You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Bill Whittakers <bi...@gmail.com> on 2009/02/22 01:28:56 UTC

Re: log4j warning messages - success - thanks to Chris

Bill Whittakers <bill.whittakers <at> gmail.com> writes:

> 
> 
> Hi
> To learn how to use XSSF, I have set up the four examples using Eclipse. 
They 
> all work. I would like to know how to setup logging to resolve the following 
> messages, and/or how to remove logging please?
> 
> log4j:WARN No appenders could be found for logger (org.openxml4j).
> log4j:WARN Please initialize the log4j system properly.
> 
> Thanks
> Bill
> 

Hi anyone following this thread

This is to report that Christophe Charles has very helpful and persistent in 
finding a solution.

1. Use the beta 5 release.

2. Put the log4j.properties file in the src directory of the Eclipse project 
with the following lines in the properties file:

log4j.logger.org.openxml4j=DEBUG, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n

3. I had to use the openxml4j-1.0-beta.jar from the beta 4 zip file, as there 
was not one in the beta 5 file.

Then the BusinessPLan example runs without warnings and reporting progress to 
the Eclipse console.

Thanks to Chris.




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