I
Ilya Lakhmitski
Is there a way do not print to the console the message:
log4j:WARN No appenders could be found for logger?
log4j:WARN No appenders could be found for logger?
Is there a way do not print to the console the message:
log4j:WARN No appenders could be found for logger?
Is there a way do not print to the console the message:
log4j:WARN No appenders could be found for logger?
If you want log output, then configure log4j properly
(see the log4j docs on how to do that).
If you don't want that, then put this in the top
of your main:
Logger.getRootLogger().addAppender(new NullAppender());
Even that can be controlled via configuration. I would prefer that
approach because it leaves the option to enable logging if that should
be necessary.
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.