Browse files

jdk 5 compatibility for readme.

  • Loading branch information...
1 parent 17bd959 commit 796a42b6791e3eeb46a3d10289d6d744defc8d7f Robert Newson committed Oct 8, 2009
Showing with 40 additions and 6 deletions.
  1. +1 −3 README.md
  2. +0 −3 src/main/conf/couchdb-lucene.properties
  3. +39 −0 src/main/conf/log4j.xml
View
4 README.md
@@ -18,9 +18,7 @@ Issue tracking at <a href="http://github.com/rnewson/couchdb-lucene/issues">gith
<h1>Minimum System Requirements</h1>
-JDK6 is required; the Sun version is recommended as it's regularly tested against.
-
-10.5 is the minimum version of OSX for the above reason.
+Java 1.5 (or above) is required; the Sun version is recommended as it's regularly tested against.
<h1>Build couchdb-lucene</h1>
View
3 src/main/conf/couchdb-lucene.properties
@@ -4,9 +4,6 @@ couchdb.url=http://localhost:5984
# The output directory for Lucene indexes.
lucene.dir=indexes
-# The location of our log file.
-lucene.log=log/couchdb-lucene.log
-
# The port that couchdb-lucene binds to.
lucene.port=5985
View
39 src/main/conf/log4j.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+
+ <!-- Output to screen -->
+ <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d{ISO8601} %p [%c{1}] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- Output to file, adjust path to taste. -->
+ <appender name="FILE" class="org.apache.log4j.RollingFileAppender">
+ <param name="file" value="/please/set/me/"/>
+ <param name="MaxFileSize" value="100KB"/>
+ <!-- Keep one backup file -->
+ <param name="MaxBackupIndex" value="1"/>
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d{ISO8601} %p [%c{1}] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- Uncomment to debug couchdb-lucene -->
+ <!--
+ <logger name="com.github">
+ <level value="TRACE"/>
+ </logger>
+ -->
+
+ <root>
+ <priority value="INFO"/>
+ <appender-ref ref="CONSOLE"/>
+
+ <!-- Uncomment to get a log file -->
+ <!--
+ <appender-ref ref="FILE"/>
+ -->
+ </root>
+</log4j:configuration>

0 comments on commit 796a42b

Please sign in to comment.