aspose file tools*
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
Author

Jakarta Commons Logging configuration problem

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39551
    
  27
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 - updated with new look and Ping home screen widget
Frank Carver
Sheriff

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
Marshal

Joined: Mar 22, 2005
Posts: 39551
    
  27
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
wsad5.0 Default_Server_stdout.log message problem
Logging in struts
How to disable struts debug/info messages
Problem reg. Delete Operation in my struts application
Unable to deploy the Struts 2 application in tomcat 5.0.27