From c35ba0ae62f320f256e5df44073f8680c8c31373 Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Mon, 8 Mar 2004 12:38:32 +0000 Subject: [PATCH] For configuring java.util.logging git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197423 13f79535-47bb-0310-9956-ffa450edef68 --- conf/fop.system.properties | 7 +++++++ conf/logging.properties | 41 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 conf/fop.system.properties create mode 100644 conf/logging.properties diff --git a/conf/fop.system.properties b/conf/fop.system.properties new file mode 100644 index 000000000..c886c42fc --- /dev/null +++ b/conf/fop.system.properties @@ -0,0 +1,7 @@ +############################################################ +# FOP Logging Configuration File +# +# Properties in this file are added to the System properties +# when FOP starts. +############################################################ +java.util.logging.config.file = conf/logging.properties diff --git a/conf/logging.properties b/conf/logging.properties new file mode 100644 index 000000000..aa7713122 --- /dev/null +++ b/conf/logging.properties @@ -0,0 +1,41 @@ +############################################################ +# FOP Logging Configuration File +# +# For the meaning of entries in this file, see the default +# file $JDK_HOME/jre/lib/logging.properties. +# This file is specified in place of the default by setting +# the java.util.logging.config.file system property. +############################################################ + +############################################################ +# Global properties +############################################################ + +handlers = java.util.logging.ConsoleHandler + +.level = INFO + +############################################################ +# Handler specific properties. +# Describes specific configuration info for Handlers. +############################################################ + +# default file output is in user's home directory. +java.util.logging.FileHandler.pattern = %h/java%u.log +java.util.logging.FileHandler.limit = 50000 +java.util.logging.FileHandler.count = 1 +java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter + +# Limit the message that are printed on the console to CONFIG and above. +java.util.logging.ConsoleHandler.level = CONFIG +java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter + + +############################################################ +# Facility specific properties. +# Provides extra control for each logger. +############################################################ + +# For example, set the com.xyz.foo logger to only log SEVERE +# messages: +org.apache.fop.level = ALL -- 2.39.5