Searched defs:logger (Results 1 - 13 of 13) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
H A DMockFilter.java37 private MethodLogger logger; field in class:MockFilter
43 public MockFilter(MethodLogger logger) { argument
45 this.logger = logger;
81 logger.add("parse", input);
86 logger.add("parse", systemId);
H A DMockParser.java33 private MethodLogger logger; field in class:MockParser
35 public MockParser(MethodLogger logger) { argument
37 this.logger = logger;
41 logger.add("parse", source);
45 logger.add("parse", systemId);
49 logger.add("setDTDHandler", handler);
53 logger.add("setDocumentHandler", handler);
57 logger.add("setEntityResolver", resolver);
61 logger
[all...]
H A DMockReader.java41 private MethodLogger logger; field in class:MockReader
55 public MockReader(MethodLogger logger) { argument
57 this.logger = logger;
88 logger.add("parse", input);
92 logger.add("parse", systemId);
H A DMockHandler.java38 private MethodLogger logger; field in class:MockHandler
40 public MockHandler(MethodLogger logger) { argument
42 this.logger = logger;
46 logger.add("characters", ch, start, length);
50 logger.add("endDocument");
54 logger.add("endElement", name);
58 logger.add("endElement", uri, localName, name);
62 logger.add("endPrefixMapping", prefix);
66 logger
[all...]
/libcore/ojluni/src/main/java/java/util/logging/
H A DLoggingProxyImpl.java40 // always create a platform logger with the resource bundle name
45 public Object getLevel(Object logger) { argument
46 return ((Logger) logger).getLevel();
50 public void setLevel(Object logger, Object newLevel) { argument
51 ((Logger) logger).setLevel((Level) newLevel);
55 public boolean isLoggable(Object logger, Object level) { argument
56 return ((Logger) logger).isLoggable((Level) level);
60 public void log(Object logger, Object level, String msg) { argument
61 ((Logger) logger).log((Level) level, msg);
65 public void log(Object logger, Objec argument
70 log(Object logger, Object level, String msg, Object... params) argument
[all...]
H A DLogManager.java88 * with the dot-separated name for the handler or logger.
99 * <li>A property "&lt;logger&gt;.handlers". This defines a whitespace or
101 * load and register as handlers to the specified logger. Each class
106 * <li>A property "&lt;logger&gt;.useParentHandlers". This defines a boolean
107 * value. By default every logger calls its parent in addition to
109 * being handled by the root logger as well. When setting this property
110 * to false a Handler needs to be configured for this logger otherwise
118 * setting logger levels, adding handlers, adding filters, etc.
132 * the logger called "foo" and (recursively) for any of its children
272 * add the root logger an
697 ensureAllDefaultLoggers(Logger logger) argument
709 ensureDefaultLogger(Logger logger) argument
741 addLocalLogger(Logger logger) argument
746 addLocalLogger(Logger logger, LogManager manager) argument
751 addLocalLogger(Logger logger, boolean addDefaultLoggersIfNeeded) argument
757 addLocalLogger(Logger logger, boolean addDefaultLoggersIfNeeded, LogManager manager) argument
847 processParentHandlers(final Logger logger, final String name) argument
950 loadLoggerHandlers(final Logger logger, final String name, final String handlersPropertyName) argument
1020 LoggerWeakRef(Logger logger) argument
1151 addLogger(Logger logger) argument
1170 doSetLevel(final Logger logger, final Level level) argument
1189 doSetParent(final Logger logger, final Logger parent) argument
1345 resetLogger(Logger logger) argument
[all...]
/libcore/ojluni/src/main/java/sun/util/logging/
H A DLoggingProxy.java38 public Object getLevel(Object logger); argument
40 public void setLevel(Object logger, Object newLevel); argument
42 public boolean isLoggable(Object logger, Object level); argument
44 public void log(Object logger, Object level, String msg); argument
46 public void log(Object logger, Object level, String msg, Throwable t); argument
48 public void log(Object logger, Object level, String msg, Object... params); argument
H A DLoggingSupport.java103 public static Object getLevel(Object logger) { argument
105 return proxy.getLevel(logger);
108 public static void setLevel(Object logger, Object newLevel) { argument
110 proxy.setLevel(logger, newLevel);
113 public static boolean isLoggable(Object logger, Object level) { argument
115 return proxy.isLoggable(logger,level);
118 public static void log(Object logger, Object level, String msg) { argument
120 proxy.log(logger, level, msg);
123 public static void log(Object logger, Object level, String msg, Throwable t) { argument
125 proxy.log(logger, leve
128 log(Object logger, Object level, String msg, Object... params) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
H A DParserAdapterTest.java58 private MethodLogger logger = new MethodLogger(); field in class:ParserAdapterTest
60 private MockHandler handler = new MockHandler(logger);
62 private Parser parser = new MockParser(logger);
201 assertEquals("parse", logger.getMethod());
202 assertEquals(InputSource.class, logger.getArgs()[0].getClass());
216 assertEquals("parse", logger.getMethod());
217 assertEquals(new Object[] { source }, logger.getArgs());
225 assertEquals(logger.size(), 1);
226 assertEquals("setDocumentLocator", logger.getMethod());
227 assertEquals(new Object[] { l }, logger
[all...]
H A DXMLReaderAdapterTest.java48 private MethodLogger logger = new MethodLogger(); field in class:XMLReaderAdapterTest
50 private MockHandler handler = new MockHandler(logger);
52 private XMLReader reader = new MockReader(logger);
140 assertEquals("startDocument", logger.getMethod());
141 assertEquals(new Object[] { }, logger.getArgs());
167 assertEquals("parse", logger.getMethod(0));
168 assertEquals(InputSource.class, logger.getArgs(0)[0].getClass());
182 assertEquals("parse", logger.getMethod());
183 assertEquals(new Object[] { source }, logger.getArgs());
191 assertEquals("setDocumentLocator", logger
[all...]
H A DXMLFilterImplTest.java49 private MethodLogger logger = new MethodLogger(); field in class:XMLFilterImplTest
51 private MockHandler handler = new MockHandler(logger);
53 private XMLFilterImpl parent = new MockFilter(logger);
194 assertEquals(1, logger.size());
195 assertEquals("parse", logger.getMethod());
220 assertEquals(1, logger.size());
221 assertEquals("parse", logger.getMethod());
278 assertEquals(logger.size(), 1);
279 assertEquals("notationDecl", logger.getMethod());
281 logger
[all...]
/libcore/support/src/test/java/tests/http/
H A DMockWebServer.java65 private static final Logger logger = Logger.getLogger(MockWebServer.class.getName()); field in class:MockWebServer
187 logger.log(Level.WARNING, "MockWebServer connection failed", e);
197 logger.log(Level.WARNING, "MockWebServer server socket close failed", e);
204 logger.log(Level.WARNING, "MockWebServer socket close failed", e);
210 logger.log(Level.WARNING, "MockWebServer executor shutdown failed", e);
250 logger.log(Level.WARNING, "MockWebServer connection failed", e);
275 logger.warning("MockWebServer connection didn't make a request");
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
H A DFtpClient.java56 private static final PlatformLogger logger = field in class:FtpClient
434 if (logger.isLoggable(PlatformLogger.FINEST)) {
435 logger.finest("Server [" + serverAddr + "] --> " + response);
476 if (logger.isLoggable(PlatformLogger.FINEST)) {
477 logger.finest("Server [" + serverAddr + "] <-- " + cmd);

Completed in 222 milliseconds