Log4J Configuration

A

alan

Talk to me about log4j configuration. I've put log4j statemetns
in my code, and they are useful for debugging, but when I
distribute my application, or libraries, what sort of interface
should I provide? Should I ask users to stick properties file in
the classpath? Should I create a Swing GUI or HTML Form? Should
the instrumentation be documented?

What do you do with log4j statements when you are done with them?
 
T

Thomas Schabas

Hi,

first of all log4j output is never unnecessary. If the program has a
problem, its very useful to have some debug output..
For me the best solution is to write this output into a log file. If you
dont want to have a big log file you can set the level of log4j high and
less is written into the file. If really a problem occurs you set the log
level to debug and you can easily see what the problem is. (Of course only
if you log useful data)
regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top