Hmm, perhaps I should RTFM. Apparently :dev-dependencies no longer exists
in lein2.
Adding this to my project.clj resolves the issue:
:profiles {:dev {:dependencies [[log4j "1.2.17"]]}}
On 29 January 2013 21:24, Stuart Campbell <[email protected]> wrote:
> Hello,
>
> I'm working on a library that uses clojure.tools.logging, and I'm using
> Leiningen 2 to build it.
>
> If I include log4j in my project's :dev-dependencies, I get weird logging
> output, e.g.:
>
> Jan 29, 2013 8:45:31 PM clojure.tools.logging$eval373$fn__377 invoke
> INFO: Hello
>
> But if I include log4j in my project's :dependencies, it looks normal:
>
> 2013-01-29 20:44:41,966 INFO user: hello
>
> Ideally I'd like to use :dev-dependencies for this.
>
> My guess is there's some classloading ordering issue, but I'm not quite
> sure how to resolve it. Any ideas?
>
> Thanks,
> Stuart
>
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.