< prev index next >

test/java/lang/System/LoggerFinder/DefaultLoggerFinderTest/DefaultLoggerFinderTest.java

Print this page

        

*** 297,310 **** "WITHPERMISSIONS" }; final java.util.logging.Logger appSink = java.util.logging.Logger.getLogger("foo"); final java.util.logging.Logger sysSink = accessSystemLogger.demandSystemLogger("foo"); ! appSink.addHandler(new MyHandler()); ! sysSink.addHandler(new MyHandler()); ! appSink.setUseParentHandlers(VERBOSE); ! sysSink.setUseParentHandlers(VERBOSE); Stream.of(args).map(TestCases::valueOf).forEach((testCase) -> { LoggerFinder provider; switch (testCase) { case NOSECURITY: --- 297,309 ---- "WITHPERMISSIONS" }; final java.util.logging.Logger appSink = java.util.logging.Logger.getLogger("foo"); final java.util.logging.Logger sysSink = accessSystemLogger.demandSystemLogger("foo"); ! final java.util.logging.Logger sink = java.util.logging.Logger.getLogger("foo"); ! sink.addHandler(new MyHandler()); ! sink.setUseParentHandlers(VERBOSE); Stream.of(args).map(TestCases::valueOf).forEach((testCase) -> { LoggerFinder provider; switch (testCase) { case NOSECURITY:
< prev index next >