aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicola Ken Barozzi <nicolaken@apache.org>2002-03-18 09:23:22 +0000
committerNicola Ken Barozzi <nicolaken@apache.org>2002-03-18 09:23:22 +0000
commit6d39630e8694f44d7cb643d21f196867eb04fcfa (patch)
treecceb4eb2742df7454cca78ef8aab5cd57c3ab9c5 /src
parent02588815d66b9539c5e5734cad271c2cb77b66da (diff)
downloadpoi-6d39630e8694f44d7cb643d21f196867eb04fcfa.tar.gz
poi-6d39630e8694f44d7cb643d21f196867eb04fcfa.zip
To make thing easier for users, I've changed now the default properties of log4j to output to null even when jog4j is present.
To override, one can use commoms logging env variables or simply replace src/java/log4j.properties with the one in src/resources/devtools, that works as usual for developers. git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352244 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/log4j.properties42
-rw-r--r--src/resources/devtools/log4j.properties31
2 files changed, 42 insertions, 31 deletions
diff --git a/src/java/log4j.properties b/src/java/log4j.properties
index 1eef6c2488..8e30097a2c 100644
--- a/src/java/log4j.properties
+++ b/src/java/log4j.properties
@@ -1,31 +1,11 @@
-#log4j.rootCategory=debug, globalLog
-log4j.category.org.apache.poi.hssf=debug, hssfLog
-log4j.category.org.apache.poi.hdf=debug, hdfLog
-log4j.category.org.apache.poi.hpsf=debug, hpsfLog
-log4j.category.org.apache.poi.poifs=debug, poifsLog
-log4j.category.org.apache.poi.util=debug, utilLog
-
-log4j.appender.hssfLog=org.apache.log4j.FileAppender
-log4j.appender.hssfLog.File=build/hssf.log
-log4j.appender.hssfLog.layout=org.apache.log4j.PatternLayout
-log4j.appender.hssfLog.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
-
-log4j.appender.hdfLog=org.apache.log4j.FileAppender
-log4j.appender.hdfLog.File=build/hdf.log
-log4j.appender.hdfLog.layout=org.apache.log4j.PatternLayout
-log4j.appender.hdfLog.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
-
-log4j.appender.hpsfLog=org.apache.log4j.FileAppender
-log4j.appender.hpsfLog.File=build/hpsf.log
-log4j.appender.hpsfLog.layout=org.apache.log4j.PatternLayout
-log4j.appender.hpsfLog.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
-
-log4j.appender.poifsLog=org.apache.log4j.FileAppender
-log4j.appender.poifsLog.File=build/poifs.log
-log4j.appender.poifsLog.layout=org.apache.log4j.PatternLayout
-log4j.appender.poifsLog.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
-
-log4j.appender.utilLog=org.apache.log4j.FileAppender
-log4j.appender.utilLog.File=build/util.log
-log4j.appender.utilLog.layout=org.apache.log4j.PatternLayout
-log4j.appender.utilLog.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
+# Set root logger level to FATAL and its only appender to stdout
+log4j.rootLogger=FATAL, stdout
+
+# stdout is set to be a ConsoleAppender.
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+
+# stdout uses PatternLayout.
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
+
+
diff --git a/src/resources/devtools/log4j.properties b/src/resources/devtools/log4j.properties
new file mode 100644
index 0000000000..1eef6c2488
--- /dev/null
+++ b/src/resources/devtools/log4j.properties
@@ -0,0 +1,31 @@
+#log4j.rootCategory=debug, globalLog
+log4j.category.org.apache.poi.hssf=debug, hssfLog
+log4j.category.org.apache.poi.hdf=debug, hdfLog
+log4j.category.org.apache.poi.hpsf=debug, hpsfLog
+log4j.category.org.apache.poi.poifs=debug, poifsLog
+log4j.category.org.apache.poi.util=debug, utilLog
+
+log4j.appender.hssfLog=org.apache.log4j.FileAppender
+log4j.appender.hssfLog.File=build/hssf.log
+log4j.appender.hssfLog.layout=org.apache.log4j.PatternLayout
+log4j.appender.hssfLog.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
+
+log4j.appender.hdfLog=org.apache.log4j.FileAppender
+log4j.appender.hdfLog.File=build/hdf.log
+log4j.appender.hdfLog.layout=org.apache.log4j.PatternLayout
+log4j.appender.hdfLog.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
+
+log4j.appender.hpsfLog=org.apache.log4j.FileAppender
+log4j.appender.hpsfLog.File=build/hpsf.log
+log4j.appender.hpsfLog.layout=org.apache.log4j.PatternLayout
+log4j.appender.hpsfLog.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
+
+log4j.appender.poifsLog=org.apache.log4j.FileAppender
+log4j.appender.poifsLog.File=build/poifs.log
+log4j.appender.poifsLog.layout=org.apache.log4j.PatternLayout
+log4j.appender.poifsLog.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
+
+log4j.appender.utilLog=org.apache.log4j.FileAppender
+log4j.appender.utilLog.File=build/util.log
+log4j.appender.utilLog.layout=org.apache.log4j.PatternLayout
+log4j.appender.utilLog.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n