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


Win a copy of Spring in Action this week in the Spring forum!
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: 42286
    
  64
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
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: 42286
    
  64
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