Ticket #210 (closed task: fixed)
configure properly log4j for preventing error messages
| Reported by: | dumoulin | Owned by: | romain.reuillon |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.0 |
| Component: | core | Version: | 0.3 |
| Severity: | minor | Keywords: | |
| Cc: | romain.reuillon@… |
Description
As log4j isn't correctly configured, we have such a message when we start openmole:
log4j:WARN No appenders could be found for logger (org.apache.commons.configuration.ConfigurationUtils). log4j:WARN Please initialize the log4j system properly.
It can be fixed programmatically with this code:
org.apache.log4j.Logger.getRootLogger().addAppender(new ConsoleAppender(new PatternLayout("%d %-5p %c - %F:%L - %m%n")));
So we have to put the corresponding log4j.xml configuration file to fix permanently that.
See also these docs:
Change History
Note: See
TracTickets for help on using
tickets.





