/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/ |
D | MockHandler.java | 38 private MethodLogger logger; field in MockHandler 40 public MockHandler(MethodLogger logger) { in MockHandler() argument 42 this.logger = logger; in MockHandler() 46 logger.add("characters", ch, start, length); in characters() 50 logger.add("endDocument"); in endDocument() 54 logger.add("endElement", name); in endElement() 58 logger.add("endElement", uri, localName, name); in endElement() 62 logger.add("endPrefixMapping", prefix); in endPrefixMapping() 66 logger.add("error", exception); in error() 70 logger.add("fatalError", exception); in fatalError() [all …]
|
D | MockParser.java | 33 private MethodLogger logger; field in MockParser 35 public MockParser(MethodLogger logger) { in MockParser() argument 37 this.logger = logger; in MockParser() 41 logger.add("parse", source); in parse() 45 logger.add("parse", systemId); in parse() 49 logger.add("setDTDHandler", handler); in setDTDHandler() 53 logger.add("setDocumentHandler", handler); in setDocumentHandler() 57 logger.add("setEntityResolver", resolver); in setEntityResolver() 61 logger.add("setErrorHandler", handler); in setErrorHandler() 65 logger.add("setLocale", locale); in setLocale()
|
D | MockFilter.java | 37 private MethodLogger logger; field in MockFilter 43 public MockFilter(MethodLogger logger) { in MockFilter() argument 45 this.logger = logger; in MockFilter() 81 logger.add("parse", input); in parse() 86 logger.add("parse", systemId); in parse()
|
D | MockReader.java | 41 private MethodLogger logger; field in MockReader 55 public MockReader(MethodLogger logger) { in MockReader() argument 57 this.logger = logger; in MockReader() 88 logger.add("parse", input); in parse() 92 logger.add("parse", systemId); in parse()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/ |
D | XMLFilterImplTest.java | 49 private MethodLogger logger = new MethodLogger(); field in XMLFilterImplTest 51 private MockHandler handler = new MockHandler(logger); 53 private XMLFilterImpl parent = new MockFilter(logger); 194 assertEquals(1, logger.size()); in testParseInputSource() 195 assertEquals("parse", logger.getMethod()); in testParseInputSource() 220 assertEquals(1, logger.size()); in testParseString() 221 assertEquals("parse", logger.getMethod()); in testParseString() 278 assertEquals(logger.size(), 1); in testNotationDecl() 279 assertEquals("notationDecl", logger.getMethod()); in testNotationDecl() 281 logger.getArgs()); in testNotationDecl() [all …]
|
D | XMLReaderAdapterTest.java | 48 private MethodLogger logger = new MethodLogger(); field in XMLReaderAdapterTest 50 private MockHandler handler = new MockHandler(logger); 52 private XMLReader reader = new MockReader(logger); 140 assertEquals("startDocument", logger.getMethod()); in testSetDocumentHandler() 141 assertEquals(new Object[] { }, logger.getArgs()); in testSetDocumentHandler() 167 assertEquals("parse", logger.getMethod(0)); in testParseString() 168 assertEquals(InputSource.class, logger.getArgs(0)[0].getClass()); in testParseString() 182 assertEquals("parse", logger.getMethod()); in testParseInputSource() 183 assertEquals(new Object[] { source }, logger.getArgs()); in testParseInputSource() 191 assertEquals("setDocumentLocator", logger.getMethod()); in testSetDocumentLocator() [all …]
|
D | ParserAdapterTest.java | 58 private MethodLogger logger = new MethodLogger(); field in ParserAdapterTest 60 private MockHandler handler = new MockHandler(logger); 62 private Parser parser = new MockParser(logger); 201 assertEquals("parse", logger.getMethod()); in testParseString() 202 assertEquals(InputSource.class, logger.getArgs()[0].getClass()); in testParseString() 216 assertEquals("parse", logger.getMethod()); in testParseInputSource() 217 assertEquals(new Object[] { source }, logger.getArgs()); in testParseInputSource() 225 assertEquals(logger.size(), 1); in testSetDocumentLocator() 226 assertEquals("setDocumentLocator", logger.getMethod()); in testSetDocumentLocator() 227 assertEquals(new Object[] { l }, logger.getArgs()); in testSetDocumentLocator() [all …]
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | LoggingProxyImpl.java | 45 public Object getLevel(Object logger) { in getLevel() argument 46 return ((Logger) logger).getLevel(); in getLevel() 50 public void setLevel(Object logger, Object newLevel) { in setLevel() argument 51 ((Logger) logger).setLevel((Level) newLevel); in setLevel() 55 public boolean isLoggable(Object logger, Object level) { in isLoggable() argument 56 return ((Logger) logger).isLoggable((Level) level); in isLoggable() 60 public void log(Object logger, Object level, String msg) { in log() argument 61 ((Logger) logger).log((Level) level, msg); in log() 65 public void log(Object logger, Object level, String msg, Throwable t) { in log() argument 66 ((Logger) logger).log((Level) level, msg, t); in log() [all …]
|
D | LogManager.java | 555 Logger logger; in demandSystemLogger() local 562 logger = sysLogger; in demandSystemLogger() 564 logger = getLogger(name); in demandSystemLogger() 566 } while (logger == null); in demandSystemLogger() 569 if (logger != sysLogger && sysLogger.accessCheckedHandlers().length == 0) { in demandSystemLogger() 571 final Logger l = logger; in demandSystemLogger() 682 Logger logger = ref.get(); in findLogger() local 683 if (logger == null) { in findLogger() 688 return logger; in findLogger() 697 private void ensureAllDefaultLoggers(Logger logger) { in ensureAllDefaultLoggers() argument [all …]
|
D | Logging.java | 87 Logger logger = logManager.getLogger(loggerName); in setLoggerLevel() local 88 if (logger == null) { in setLoggerLevel() 102 logger.setLevel(level); in setLoggerLevel()
|
D | Logger.java | 736 Logger logger = this; in log() local 737 while (logger != null) { in log() 739 ? logger.accessCheckedHandlers() in log() 740 : logger.getHandlers(); in log() 747 ? logger.useParentHandlers in log() 748 : logger.getUseParentHandlers(); in log() 754 logger = isSystemLogger ? logger.parent : logger.getParent(); in log()
|
/libcore/ojluni/src/main/java/sun/util/logging/ |
D | LoggingSupport.java | 103 public static Object getLevel(Object logger) { in getLevel() argument 105 return proxy.getLevel(logger); in getLevel() 108 public static void setLevel(Object logger, Object newLevel) { in setLevel() argument 110 proxy.setLevel(logger, newLevel); in setLevel() 113 public static boolean isLoggable(Object logger, Object level) { in isLoggable() argument 115 return proxy.isLoggable(logger,level); in isLoggable() 118 public static void log(Object logger, Object level, String msg) { in log() argument 120 proxy.log(logger, level, msg); in log() 123 public static void log(Object logger, Object level, String msg, Throwable t) { in log() argument 125 proxy.log(logger, level, msg, t); in log() [all …]
|
D | LoggingProxy.java | 38 public Object getLevel(Object logger); in getLevel() argument 40 public void setLevel(Object logger, Object newLevel); in setLevel() argument 42 public boolean isLoggable(Object logger, Object level); in isLoggable() argument 44 public void log(Object logger, Object level, String msg); in log() argument 46 public void log(Object logger, Object level, String msg, Throwable t); in log() argument 48 public void log(Object logger, Object level, String msg, Object... params); in log() argument
|
/libcore/luni/src/test/java/libcore/net/ |
D | NetworkSecurityPolicyTest.java | 209 SocketHandler logger = new SocketHandler("localhost", server.getPort()); in testCleartextTrafficPolicyWithLoggingSocketHandler() local 211 logger.setErrorManager(mockErrorManager); in testCleartextTrafficPolicyWithLoggingSocketHandler() 212 logger.setLevel(Level.ALL); in testCleartextTrafficPolicyWithLoggingSocketHandler() 214 assertTrue(logger.isLoggable(record)); in testCleartextTrafficPolicyWithLoggingSocketHandler() 215 logger.publish(record); in testCleartextTrafficPolicyWithLoggingSocketHandler() 218 logger.close(); in testCleartextTrafficPolicyWithLoggingSocketHandler()
|
/libcore/support/src/test/java/tests/http/ |
D | MockWebServer.java | 65 private static final Logger logger = Logger.getLogger(MockWebServer.class.getName()); field in MockWebServer 187 logger.log(Level.WARNING, "MockWebServer connection failed", e); in play() 197 logger.log(Level.WARNING, "MockWebServer server socket close failed", e); in play() 204 logger.log(Level.WARNING, "MockWebServer socket close failed", e); in play() 210 logger.log(Level.WARNING, "MockWebServer executor shutdown failed", e); in play() 250 logger.log(Level.WARNING, "MockWebServer connection failed", e); in serveConnection() 275 logger.warning("MockWebServer connection didn't make a request"); in serveConnection()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/ |
D | DocumentBuilderTest.java | 553 MethodLogger logger = new MethodLogger(); in testReset() local 554 ErrorHandler handler = new MockHandler(logger); in testReset() 567 assertEquals(0, logger.size()); in testReset() 574 MethodLogger logger = new MethodLogger(); in testSetErrorHandler() local 575 ErrorHandler handler = new MockHandler(logger); in testSetErrorHandler() 587 assertEquals("error", logger.getMethod()); in testSetErrorHandler() 588 assertTrue(logger.getArgs()[0] instanceof SAXParseException); in testSetErrorHandler()
|
/libcore/luni/src/main/java/java/util/logging/ |
D | logging.properties | 31 # Specify default level for global logger, the event whose level is below won't 32 # be logged. You can specify level for every logger, otherwise the level of parent 33 # logger will be used. You can also set the level for every handler, as below for
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | HijrahChronology.java | 315 PlatformLogger logger = PlatformLogger.getLogger("java.time.chrono"); 316 logger.severe("Unable to initialize Hijrah calendar: Hijrah-umalqura", ex); 342 PlatformLogger logger = PlatformLogger.getLogger("java.time.chrono"); in registerVariants() 343 logger.severe("Unable to initialize Hijrah calendar: " + id, ex); in registerVariants() 968 PlatformLogger logger = PlatformLogger.getLogger("java.time.chrono"); in loadCalendarData() 969 logger.severe("Unable to initialize Hijrah calendar proxy: " + typeId, ex); in loadCalendarData()
|
D | AbstractChronology.java | 232 PlatformLogger logger = PlatformLogger.getLogger("java.time.chrono"); in initCache() local 233 … logger.warning("Ignoring duplicate Chronology, from ServiceLoader configuration " + id); in initCache()
|
/libcore/ojluni/src/main/java/java/net/ |
D | CookieManager.java | 260 PlatformLogger logger = PlatformLogger.getLogger("java.net.CookieManager"); in put() 281 if (logger.isLoggable(PlatformLogger.Level.SEVERE)) { in put() 282 logger.severe("Invalid cookie for " + uri + ": " + headerValue); in put()
|
/libcore/ojluni/src/main/java/sun/net/ftp/impl/ |
D | FtpClient.java | 55 private static final PlatformLogger logger = field in FtpClient 433 if (logger.isLoggable(PlatformLogger.Level.FINEST)) { in readServerResponse() 434 logger.finest("Server [" + serverAddr + "] --> " + response); in readServerResponse() 475 if (logger.isLoggable(PlatformLogger.Level.FINEST)) { in sendServer() 476 logger.finest("Server [" + serverAddr + "] <-- " + cmd); in sendServer()
|