From 4237c393b328ba96f2ded92240b40223c916303d Mon Sep 17 00:00:00 2001 From: Simon Pepping Date: Sat, 17 Sep 2005 12:30:25 +0000 Subject: [PATCH] Report area tree output mode. Report that option -d fails for other than the command line logger. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@289827 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/cli/CommandLineOptions.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/cli/CommandLineOptions.java b/src/java/org/apache/fop/cli/CommandLineOptions.java index 65391d79f..7e7082e85 100644 --- a/src/java/org/apache/fop/cli/CommandLineOptions.java +++ b/src/java/org/apache/fop/cli/CommandLineOptions.java @@ -462,11 +462,16 @@ public class CommandLineOptions implements Constants { } private void setLogLevel(String level) { - // Set the evel for future loggers. + // Set the level for future loggers. LogFactory.getFactory().setAttribute("level", level); if (log instanceof CommandLineLogger) { // Set the level for the logger creates already. ((CommandLineLogger) log).setLogLevel(level); + } else { + log.warn("Setting the log level to debug probably failed."); + log.warn("Configure the log level using Java system properties,"); + log.warn("or use FOP's command line logger,"); + log.warn("which is the default on the command line."); } } @@ -821,6 +826,10 @@ public class CommandLineOptions implements Constants { log.info("svg"); log.info("output file: " + outfile.toString()); break; + case RENDER_XML: + log.info("area tree"); + log.info("output file: " + outfile.toString()); + break; default: log.info("unknown input type"); } -- 2.39.5