File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes Jakarta Commons Logging configuration problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Jakarta Commons Logging configuration problem" Watch "Jakarta Commons Logging configuration problem" New topic

Jakarta Commons Logging configuration problem

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
I'm trying to configure the Jakarta Commons Logging library in my web app. I have a file in the classes directory, and it causes the SimpleLog logger to be selected, which is what I want. To further configure SimpleLog, I have a file, also in the classes directory, just like the docs mention it. But that file is completely ignored, and all the default settings are used. Has anyone successfully configured SimpleLog with a file, and can give me some hints on how to do that?

I suppose I could read the contents of at web app startup time, and add them to the system properties directly, but that seems unnecessary work when it apparently should work out of the box.

Many thanks in advance.
[ November 23, 2006: Message edited by: Ulf Dittmer ]
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
I vaguely remember messing with this at a previous job.

Have you tried adding the entries from simplelog configs to the main logging properties file?

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Yes, I had tried keeping it all in one file - same (non-)result.
I agree. Here's the link:
subject: Jakarta Commons Logging configuration problem
It's not a secret anymore!