Skip to content

Commit

Permalink
remove log4j, tell people how to add it back
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Granger <ibdknox@gmail.com>
  • Loading branch information
ibdknox committed Mar 20, 2012
1 parent 6689f23 commit 0001614
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
21 changes: 21 additions & 0 deletions README.md
Expand Up @@ -12,6 +12,27 @@ Simply add Korma as a dependency to your lein/cake project:

For docs and real usage, check out http://sqlkorma.com

To get rid of the ridiculously verbose logging, add the following into src/log4j.xml:

```xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<logger name="com.mchange">
<level value="WARN"/>
</logger>
</log4j:configuration>
```

And include log4j in your project.clj:

```clojure
[log4j "1.2.15" :exclusions [javax.mail/mail
javax.jms/jms
com.sun.jdmk/jmxtools
com.sun.jmx/jmxri]]
```

## Examples of generated queries:

```clojure
Expand Down
9 changes: 2 additions & 7 deletions project.clj
@@ -1,13 +1,8 @@
(defproject korma "0.3.0-beta7"
:description "Tasty SQL for Clojure"
:url "http://github.com/ibdknox/korma"
:dependencies [[org.clojure/clojure "[1.2.1],[1.3.0]"]
:dependencies [[org.clojure/clojure "1.3.0"]
[c3p0/c3p0 "0.9.1.2"]
[log4j "1.2.15" :exclusions [javax.mail/mail
javax.jms/jms
com.sun.jdmk/jmxtools
com.sun.jmx/jmxri]]
[org.clojure/java.jdbc "0.1.0"]]
:codox {:exclude [korma.sql.engine korma.sql.fns korma.sql.utils]}
:dev-dependencies [[org.clojars.rayne/autodoc "0.8.0-SNAPSHOT"]
[postgresql "9.0-801.jdbc4"]])
:dev-dependencies [[postgresql "9.0-801.jdbc4"]])
9 changes: 0 additions & 9 deletions src/log4j.xml

This file was deleted.

0 comments on commit 0001614

Please sign in to comment.