Browse files

Use resources folder only for log4j.properties. Update log4j.properti…

…es to use a cleaner pattern.
  • Loading branch information...
1 parent 09112d5 commit 599c8fa64129dde30f5f9313e18e6fd70589a486 @abedra abedra committed May 2, 2011
Showing with 11 additions and 17 deletions.
  1. +0 −9 config/log4j.properties
  2. +8 −5 resources/log4j.properties
  3. +1 −1 script/repl
  4. +1 −1 script/repl.bat
  5. +1 −1 script/test
View
9 config/log4j.properties
@@ -1,9 +0,0 @@
-log4j.rootLogger=info, R
-
-log4j.appender.R=org.apache.log4j.RollingFileAppender
-log4j.appender.R.File=log/compojure.log
-log4j.appender.R.MaxFileSize=1000KB
-log4j.appender.R.MaxBackupIndex=1
-log4j.appender.R.layout=org.apache.log4j.PatternLayout
-log4j.appender.R.layout.ConversionPattern=%d{MM-dd@HH:mm:ss} %-5p (%13c) - %m%n
-
View
13 resources/log4j.properties
@@ -1,5 +1,8 @@
-log4j.rootLogger=WARN, A1
-log4j.logger.user=DEBUG
-log4j.appender.A1=org.apache.log4j.ConsoleAppender
-log4j.appender.A1.layout=org.apache.log4j.PatternLayout
-log4j.appender.A1.layout.ConversionPattern=%d %-5p %c: %m%n
+log4j.rootLogger=info, R
+
+log4j.appender.R=org.apache.log4j.RollingFileAppender
+log4j.appender.R.File=logs/labrepl.log
+log4j.appender.R.MaxFileSize=1000KB
+log4j.appender.R.MaxBackupIndex=1
+log4j.appender.R.layout=org.apache.log4j.PatternLayout
+log4j.appender.R.layout.ConversionPattern=%d{ISO8601} %-5p [%c] - %m%n
View
2 script/repl
@@ -1,5 +1,5 @@
#!/bin/sh
-CLASSPATH=src:test:config:data
+CLASSPATH=src:test:resources:data
for f in lib/*.jar; do
CLASSPATH=$CLASSPATH:$f
View
2 script/repl.bat
@@ -5,7 +5,7 @@ for /R ./lib %%a in (*.jar) do (
set CLASSPATH=!CLASSPATH!;%%a
)
set CLASSPATH=!CLASSPATH!"
-set CLASSPATH=%CLASSPATH%;src;test;config;data
+set CLASSPATH=%CLASSPATH%;src;test;resources;data
echo CLASSPATH=%CLASSPATH%
@rem jline breaks inferior-lisp.
View
2 script/test
@@ -1,5 +1,5 @@
#!/bin/sh
-CLASSPATH=test:src:config:classes:features
+CLASSPATH=test:src:resources:classes:features
for f in lib/*.jar; do
CLASSPATH=$CLASSPATH:$f

0 comments on commit 599c8fa

Please sign in to comment.