#13 Static path to log4j.xml in org.aglets.log.AgletsLogger

open
nobody
None
5
2011-12-08
2011-12-08
Anonymous
No

In-class initializer in AgletsLogger points to log4j.xml path as {aglets.home}/cnf/log4j.xml

If one would want to move this file somewhere else, one would get FileNotFound exception every time Tahiti started.

I propose to change line 49:
DOMConfigurator.configure(agletsHome);
to
DOMConfigurator.configure(System.getProperty("log4j.configuration", agletsHome));

This allows to set location of log4j file using standard log4j property and still falls back to default in case no property is given.

Discussion