Lines Matching refs:Logger
34 import java.util.logging.Logger;
42 * @summary NPE when using Logger.getAnonymousLogger or
161 public static class CustomAnonymousLogger extends Logger {
173 public static class CustomLogger extends Logger {
208 return "Test that Logger.getAnonymousLogger()"
211 return "Test that Logger.getLogger(\"\")"
217 return "Test that Logger.getLogger(Logger.GLOBAL_LOGGER_NAME)"
219 + " new CustomAnonymousLogger(Logger.GLOBAL_LOGGER_NAME)"
222 return "Test that LogManager.getLogManager().getLogger(Logger.GLOBAL_LOGGER_NAME)"
225 return "Test that manager.getLogger(Logger.GLOBAL_LOGGER_NAME)"
281 Logger bar = new Bridge.CustomLogger("com.foo.Bar");
290 Logger foo = new Bridge.CustomLogger("com.foo.Foo");
302 Logger bar = new Bridge.CustomLogger("com.foo.Bar");
311 Logger foo = new Bridge.CustomLogger("com.foo.Foo");
323 Logger logger1 = Logger.getAnonymousLogger();
324 Logger logger1b = Logger.getAnonymousLogger();
326 Logger logger2 = Logger.getAnonymousLogger();
327 Logger logger2b = Logger.getAnonymousLogger();
329 Logger logger3 = new Bridge.CustomAnonymousLogger();
330 Logger logger3b = new Bridge.CustomAnonymousLogger();
332 Logger logger4 = new Bridge.CustomAnonymousLogger();
333 Logger logger4b = new Bridge.CustomAnonymousLogger();
340 Logger logger1 = Logger.getLogger("");
341 Logger logger1b = Logger.getLogger("");
346 Logger logger2 = Logger.getLogger("");
347 Logger logger2b = Logger.getLogger("");
357 Logger logger1 = LogManager.getLogManager().getLogger("");
358 Logger logger1b = LogManager.getLogManager().getLogger("");
363 Logger logger2 = LogManager.getLogManager().getLogger("");
364 Logger logger2b = LogManager.getLogManager().getLogger("");
374 Logger logger1 = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME);
375 Logger logger1b = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME);
381 Logger logger2 = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME);
382 Logger logger2b = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME);
390 Logger logger3 = new Bridge.CustomAnonymousLogger(Logger.GLOBAL_LOGGER_NAME);
391 Logger logger3b = new Bridge.CustomAnonymousLogger(Logger.GLOBAL_LOGGER_NAME);
393 Logger logger4 = new Bridge.CustomAnonymousLogger(Logger.GLOBAL_LOGGER_NAME);
394 Logger logger4b = new Bridge.CustomAnonymousLogger(Logger.GLOBAL_LOGGER_NAME);
400 Logger logger1 = LogManager.getLogManager().getLogger(Logger.GLOBAL_LOGGER_NAME);
401 Logger logger1b = LogManager.getLogManager().getLogger(Logger.GLOBAL_LOGGER_NAME);
408 Logger logger2 = LogManager.getLogManager().getLogger(Logger.GLOBAL_LOGGER_NAME);
409 Logger logger2b = LogManager.getLogManager().getLogger(Logger.GLOBAL_LOGGER_NAME);
429 Logger logger1 = manager.getLogger(Logger.GLOBAL_LOGGER_NAME);
430 Logger logger1b = manager.getLogger(Logger.GLOBAL_LOGGER_NAME);
433 Logger global = new Bridge.CustomLogger(Logger.GLOBAL_LOGGER_NAME);
435 Logger logger2 = manager.getLogger(Logger.GLOBAL_LOGGER_NAME);
436 Logger logger2b = manager.getLogger(Logger.GLOBAL_LOGGER_NAME);
452 // global == Logger.global
454 Logger logger3 = manager.getLogger(Logger.GLOBAL_LOGGER_NAME);
455 Logger logger3b = manager.getLogger(Logger.GLOBAL_LOGGER_NAME);
458 Logger expected = (System.getSecurityManager() != null
459 ? Logger.getGlobal()
465 Logger global2 = new Bridge.CustomLogger(Logger.GLOBAL_LOGGER_NAME);
469 Logger logger4 = manager.getLogger(Logger.GLOBAL_LOGGER_NAME);
470 Logger logger4b = manager.getLogger(Logger.GLOBAL_LOGGER_NAME);
476 Logger logger5 = manager.getLogger("");
477 Logger logger5b = manager.getLogger("");
478 Logger expectedRoot = (System.getSecurityManager() != null
498 Logger logger1 = manager.getLogger("");
499 Logger logger1b = manager.getLogger("");
502 Logger global = new Bridge.CustomLogger(Logger.GLOBAL_LOGGER_NAME);
504 Logger logger2 = manager.getLogger(Logger.GLOBAL_LOGGER_NAME);
505 Logger logger2b = manager.getLogger(Logger.GLOBAL_LOGGER_NAME);
510 Logger logger3 = manager.getLogger("");
511 Logger logger3b = manager.getLogger("");
514 Logger root = new Bridge.CustomLogger("");
516 Logger logger4 = manager.getLogger("");
517 Logger logger4b = manager.getLogger("");
531 // global == Logger.global
533 Logger logger5 = manager.getLogger("");
534 Logger logger5b = manager.getLogger("");
535 Logger expectedRoot = (System.getSecurityManager() != null
548 Logger global2 = new Bridge.CustomLogger(Logger.GLOBAL_LOGGER_NAME);
552 Logger logger6 = manager.getLogger(Logger.GLOBAL_LOGGER_NAME);
553 Logger logger6b = manager.getLogger(Logger.GLOBAL_LOGGER_NAME);
554 Logger expectedGlobal = (System.getSecurityManager() != null
555 ? Logger.getGlobal()
562 Logger root2 = new Bridge.CustomLogger("");
566 Logger logger7 = manager.getLogger("");
567 Logger logger7b = manager.getLogger("");
577 public static void testParent(Logger logger) {
578 Logger l = logger;