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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 41057
I'm trying to configure the Jakarta Commons Logging library in my web app. I have a commons-logging.properties 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 simplelog.properties 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 simplelog.properties file, and can give me some hints on how to do that?

I suppose I could read the contents of simplelog.properties 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 ]

Ping & DNS - my free Android networking tools app
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 frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41057
Yes, I had tried keeping it all in one file - same (non-)result.
I agree. Here's the link: http://aspose.com/file-tools
subject: Jakarta Commons Logging configuration problem
Similar Threads
Logging in struts
Unable to deploy the Struts 2 application in tomcat 5.0.27
Problem reg. Delete Operation in my struts application
wsad5.0 Default_Server_stdout.log message problem
How to disable struts debug/info messages