aboutsummaryrefslogtreecommitdiffstats
path: root/fop.bat
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.bat
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.bat')
-rw-r--r--fop.bat17
1 files changed, 16 insertions, 1 deletions
diff --git a/fop.bat b/fop.bat
index 549d656b7..ac51e7af4 100644
--- a/fop.bat
+++ b/fop.bat
@@ -21,6 +21,21 @@ rem This label provides a place for the argument list loop to break out
rem and for NT handling to skip to.
:doneStart
+set LOGCHOICE=
+rem The default commons logger for JDK1.4 is JDK1.4Logger.
+rem To use a different logger, uncomment the one desired below
+rem set LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
+rem set LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
+rem set LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
+
+set LOGLEVEL=
+rem Logging levels
+rem Below option is only if you are using SimpleLog instead of the default JDK1.4 Logger.
+rem To set logging levels for JDK 1.4 Logger, edit the %JAVA_HOME%\JRE\LIB\logging.properties
+rem file instead.
+rem Possible SimpleLog values: "trace", "debug", "info" (default), "warn", "error", or "fatal".
+rem set LOGLEVEL=-Dorg.apache.commons.logging.simplelog.defaultlog=INFO
+
set LIBDIR=%LOCAL_FOP_HOME%lib
set LOCALCLASSPATH=%LOCAL_FOP_HOME%build\fop.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis.jar
@@ -34,5 +49,5 @@ set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_core.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_codec.jar
-java -cp "%LOCALCLASSPATH%" org.apache.fop.apps.Fop %FOP_CMD_LINE_ARGS%
+java %LOGCHOICE% %LOGLEVEL% -cp "%LOCALCLASSPATH%" org.apache.fop.apps.Fop %FOP_CMD_LINE_ARGS%