make sure logdir is not null in getLogger()
This commit is contained in:
parent
811410599a
commit
c4f51228fe
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue