Hi, I have some questions about logging, more specifically about setting it
up and making sure it works.

The project I'm doing will use Wicket, Spring and Hibernate. I know that
Wicket and Hibernate uses Simple Logging Facade for Java (SL4J) and that
Spring is using the logging component from Apache Commons.

Will they co-exist happily?
I thought I would use log4j together with both SL4J and the logging
component from Apache commons, do you think that's a good idea?

Can I set up them all to output logging data into a common file?
Or should I use separate files?
Or should I store the logging messages in the database? (I'd rather not, as
I find grepping etc on text files quite convenient.)

Not strictly Wicket, but for Spring I guess I need some kind of
configuration file for the Apache Commons logging component as well where I
direct it to use log4j?

When I've set these up I guess to see that everything works I set the
logging level to INFO as it's fairly certain that all three of the
frameworks output some information in that mode? Or is there an even better
way to make sure?

And my last question. In the project I'm starting, do you recommend that I
use SL4J for my own logging purposes? (I thought I would use log4j directly,
but that was before I learned a little bit more about logging and a lot of
respectable libraries seem to choose the path of a bridge/facade for their
logging needs. And if it gets us flexibility without added cost there's no
reason not to do it that way.)

I'm looking forward to hearing more from you about how you are doing your
logging. It's a new area for me which I'm eager to improve myself in.

Best regards, Kent

Reply via email to