Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jakarta Commons Logging configuration problem

 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I had tried keeping it all in one file - same (non-)result.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic