[WARNING] Screen logger not set.
Hey folks, I'm using FOP 0.20.4 and when I run FOP embedded in a java program I can't seem to get rid of the message [WARNING] Screen logger not set. I've tried... import org.apache.avalon.framework.logger.Logger; import org.apache.avalon.framework.logger.ConsoleLogger; import org.apache.avalon.framework.logger.NullLogger; Driver driver = new Driver(); Logger logger = new NullLogger(); driver.setLogger(logger); MessageHandler.setScreenLogger(logger); and also... import org.apache.avalon.framework.logger.Logger; import org.apache.avalon.framework.logger.ConsoleLogger; import org.apache.avalon.framework.logger.NullLogger; Driver driver = new Driver(); Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_DISABLED); driver.setLogger(logger); MessageHandler.setScreenLogger(logger); And I still get the warning message on stdout. Any ideas? Jackie Wilson Sword Microsystems, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logger not set
Michael Engelhart wrote: Hi all, Does it matter if I just ignore setting the logger? I already have an application built around using Log4J and it seems silly to instantiate another logging system just to output 3 lines every time I run FOP. I just want to make sure that there isn't anything critical to the setLogger method Maybe it will be better to use Commons Logging package inside fop instead of Avalon LogKit - somebody may configure Logging to use LogKit, somebody to use Log4j. Regards Tomek Pik [EMAIL PROTECTED] thanks Mike
Logger not set
Hi all, Does it matter if I just ignore setting the logger? I already have an application built around using Log4J and it seems silly to instantiate another logging system just to output 3 lines every time I run FOP. I just want to make sure that there isn't anything critical to the setLogger method thanks Mike
Re: Logger not set
Hi all, Does it matter if I just ignore setting the logger? I already have an application built around using Log4J and it seems silly to instantiate another logging system just to output 3 lines every time I run FOP. I just want to make sure that there isn't anything critical to the setLogger method thanks Mike
Re: [ERROR]: Logger not set
using org.apache.log, you can do the following, or modify for your needs Hierarchy hierarchy = Hierarchy.getDefaultHierarchy(); PatternFormatter formatter = new PatternFormatter( [%{priority}]:%{message}\n%{throwable} ); LogTarget target = new StreamTarget(System.out, formatter); hierarchy.setDefaultLogTarget(target); Logger log = hierarchy.getLoggerFor(fop); JohnPT [EMAIL PROTECTED] APACHE.ORG To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] 12/26/01 03:56 PM cc: Please respond to fop-user Subject: [ERROR]: Logger not set How does one set the logger ? Thanks Lakshmi