import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
-
+// Avalon
+import org.apache.avalon.framework.logger.ConsoleLogger;
+import org.apache.avalon.framework.logger.Logger;
// Java
import java.io.FileReader;
renderer.setProgressListener(frame);
renderer.setComponent(frame);
driver = new Driver();
- driver.setLogger(log);
+ driver.setLogger(new ConsoleLogger(ConsoleLogger.LEVEL_INFO));
if (errorDump) {
driver.setErrorDump(true);
}
import org.apache.fop.layout.Page;
import org.apache.fop.messaging.MessageHandler;
+// Avalon
+import org.apache.avalon.framework.logger.ConsoleLogger;
+import org.apache.avalon.framework.logger.Logger;
/**
* This class prints a xsl-fo dokument without interaction.
driver.setErrorDump(true);
}
- String version = Version.getVersion();
- MessageHandler.errorln(version);
+ // Nov 18, 02 eliminates spurious [ERROR] message to logger
+
+ driver.setLogger (new ConsoleLogger(ConsoleLogger.LEVEL_INFO)) ;
+ log.info (Version.getVersion()) ;
XMLReader parser = inputHandler.getParser();
if (logger == null) {
logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO);
- logger.warn("Screen logger not set.");
+ logger.warn("Screen logger not set - Using ConsoleLogger.");
}
setMessage(message);
public static void error(String errorMessage) {
if (logger == null) {
logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO);
- logger.warn("Screen logger not set.");
+ logger.warn("Screen logger not set - Using ConsoleLogger.");
}
setMessage(errorMessage);