make sure logdir is not null in getLogger()

This commit is contained in:
hns 2003-11-28 22:17:10 +00:00
parent 811410599a
commit c4f51228fe

View file

@ -1306,7 +1306,7 @@ public final class Application implements IPathElement, Runnable {
* Get a logger object to log events for this application.
*/
protected Log getLogger(String logname) {
String logdir = props.getProperty("logdir");
String logdir = props.getProperty("logdir", "log");
if ("console".equals(logdir) || "console".equals(logname)) {
return Logging.getConsoleLog();