equal
deleted
inserted
replaced
319 owner.readPrimordialConfiguration(); |
319 owner.readPrimordialConfiguration(); |
320 |
320 |
321 // Create and retain Logger for the root of the namespace. |
321 // Create and retain Logger for the root of the namespace. |
322 owner.rootLogger = owner.new RootLogger(); |
322 owner.rootLogger = owner.new RootLogger(); |
323 owner.addLogger(owner.rootLogger); |
323 owner.addLogger(owner.rootLogger); |
|
324 if (!owner.rootLogger.isLevelInitialized()) { |
|
325 owner.rootLogger.setLevel(defaultLevel); |
|
326 } |
324 |
327 |
325 // Adding the global Logger. |
328 // Adding the global Logger. |
326 // Do not call Logger.getGlobal() here as this might trigger |
329 // Do not call Logger.getGlobal() here as this might trigger |
327 // subtle inter-dependency issues. |
330 // subtle inter-dependency issues. |
328 @SuppressWarnings("deprecation") |
331 @SuppressWarnings("deprecation") |
1505 private RootLogger() { |
1508 private RootLogger() { |
1506 // We do not call the protected Logger two args constructor here, |
1509 // We do not call the protected Logger two args constructor here, |
1507 // to avoid calling LogManager.getLogManager() from within the |
1510 // to avoid calling LogManager.getLogManager() from within the |
1508 // RootLogger constructor. |
1511 // RootLogger constructor. |
1509 super("", null, null, LogManager.this); |
1512 super("", null, null, LogManager.this); |
1510 setLevel(defaultLevel); |
|
1511 } |
1513 } |
1512 |
1514 |
1513 @Override |
1515 @Override |
1514 public void log(LogRecord record) { |
1516 public void log(LogRecord record) { |
1515 // Make sure that the global handlers have been instantiated. |
1517 // Make sure that the global handlers have been instantiated. |