aboutsummaryrefslogtreecommitdiffstats
path: root/fop.sh
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2004-04-18 22:39:02 +0000
committerGlen Mazza <gmazza@apache.org>2004-04-18 22:39:02 +0000
commit8aacc4b5f51d2b354779dbcc6ce19130d5312841 (patch)
treeccd3e0bfdaa294312cafcba39e583aa906cbdb59 /fop.sh
parentdfb872c70f71dd6e83ae8e596917f665b71fcb9d (diff)
downloadxmlgraphics-fop-8aacc4b5f51d2b354779dbcc6ce19130d5312841.tar.gz
xmlgraphics-fop-8aacc4b5f51d2b354779dbcc6ce19130d5312841.zip
Remaining changes done with Avalon->Commons Logging conversion. (Bug 28237)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197517 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop.sh')
-rwxr-xr-xfop.sh17
1 files changed, 16 insertions, 1 deletions
diff --git a/fop.sh b/fop.sh
index 3df6b10fd..f19a7854d 100755
--- a/fop.sh
+++ b/fop.sh
@@ -100,5 +100,20 @@ if $cygwin; then
LOCALCLASSPATH=`cygpath --path --windows "$LOCALCLASSPATH"`
fi
-$JAVACMD -classpath "$LOCALCLASSPATH" $FOP_OPTS org.apache.fop.apps.Fop "$@"
+LOGCHOICE=
+# The default commons logger for JDK1.4 is JDK1.4Logger.
+# To use a different logger, uncomment the one desired below
+# LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
+# LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
+# LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
+
+LOGLEVEL=
+# Logging levels
+# Below option is only if you are using SimpleLog instead of the default JDK1.4 Logger.
+# To set logging levels for JDK 1.4 Logger, edit the %JAVA_HOME%/JRE/LIB/logging.properties
+# file instead.
+# Possible SimpleLog values: "trace", "debug", "info" (default), "warn", "error", or "fatal".
+# LOGLEVEL=-Dorg.apache.commons.logging.simplelog.defaultlog=INFO
+
+$JAVACMD $LOGCHOICE $LOGLEVEL -classpath "$LOCALCLASSPATH" $FOP_OPTS org.apache.fop.apps.Fop "$@"