Home
last modified time | relevance | path

Searched refs:LogRecord (Results 1 – 25 of 66) sorted by relevance

123

/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
DLogRecordTest.java25 import java.util.logging.LogRecord;
37 private LogRecord lr;
43 lr = new LogRecord(Level.CONFIG, MSG); in setUp()
49 new LogRecord(null, null); in testLogRecordWithNullPointers()
54 new LogRecord(null, MSG); in testLogRecordWithNullPointers()
58 LogRecord r = new LogRecord(Level.WARNING, null); in testLogRecordWithNullPointers()
112 lr = new LogRecord(Level.ALL, null); in testGetSetSequenceNumber()
147 lr = new LogRecord(Level.SEVERE, MSG); in testGetSourceDefaultValue()
154 lr = new LogRecord(Level.SEVERE, MSG); in testGetSourceDefaultValue()
161 lr = new LogRecord(Level.SEVERE, MSG); in testGetSourceDefaultValue()
[all …]
DMemoryHandlerTest.java31 import java.util.logging.LogRecord;
113 assertFalse(handler.isLoggable(new LogRecord(Level.SEVERE, "test"))); in testClose()
128 assertTrue(handler.isLoggable(new LogRecord(Level.SEVERE, "test"))); in testFlush()
138 LogRecord record = new LogRecord(Level.FINER, "MSG1"); in testIsLoggable()
141 record = new LogRecord(Level.FINE, "MSG2"); in testIsLoggable()
144 record = new LogRecord(Level.CONFIG, "MSG3"); in testIsLoggable()
147 record = new LogRecord(Level.CONFIG, "false"); in testIsLoggable()
151 record = new LogRecord(Level.CONFIG, "false"); in testIsLoggable()
300 LogRecord lr = new LogRecord(Level.CONFIG, "lr"); in testSetPushLevel()
315 handler.publish(new LogRecord(Level.CONFIG, "MSG1")); in testPushPublic()
[all …]
DStreamHandlerTest.java37 import java.util.logging.LogRecord;
158 h.publish(new LogRecord(Level.SEVERE, "test")); in testConstructor_NoParameter_InvalidProperties()
302 h.publish(new LogRecord(Level.SEVERE, in testClose_SufficientPrivilege_NormalClose()
322 h.publish(new LogRecord(Level.SEVERE, in testClose_SufficientPrivilege_Exception()
380 LogRecord r = new LogRecord(Level.INFO, null); in testIsLoggable_NoOutputStream()
400 LogRecord r = new LogRecord(Level.INFO, null); in testIsLoggable_NoFilter()
420 LogRecord r = new LogRecord(Level.INFO, null); in testIsLoggable_WithFilter()
457 LogRecord r = new LogRecord(Level.INFO, "testPublish_NoOutputStream"); in testPublish_NoOutputStream()
478 LogRecord r = new LogRecord(Level.INFO, "testPublish_NoFilter"); in testPublish_NoFilter()
513 LogRecord r = new LogRecord(Level.INFO, "testPublish_WithFilter"); in testPublish_WithFilter()
[all …]
DLoggerTest.java36 import java.util.logging.LogRecord;
965 LogRecord r = (LogRecord) CallVerificationStack.getInstance().pop(); in testThrowing_Normal()
994 LogRecord r = (LogRecord) CallVerificationStack.getInstance().pop(); in testThrowing_Null()
1013 LogRecord r = (LogRecord) CallVerificationStack.getInstance().pop(); in testEntering_StringString_Normal()
1042 LogRecord r = (LogRecord) CallVerificationStack.getInstance().pop(); in testEntering_StringString_Null()
1062 LogRecord r = (LogRecord) CallVerificationStack.getInstance().pop(); in testEntering_StringStringObject_Normal()
1092 LogRecord r = (LogRecord) CallVerificationStack.getInstance().pop(); in testEntering_StringStringObject_Null()
1115 LogRecord r = (LogRecord) CallVerificationStack.getInstance().pop(); in testEntering_StringStringObjects_Normal()
1147 LogRecord r = (LogRecord) CallVerificationStack.getInstance().pop(); in testEntering_StringStringObjects_NullEmpty()
1168 LogRecord r = (LogRecord) CallVerificationStack.getInstance().pop(); in testEntering_StringStringObjects_Null()
[all …]
DConsoleHandlerTest.java32 import java.util.logging.LogRecord;
142 h.publish(new LogRecord(Level.SEVERE, "test")); in testConstructor_InvalidProperties()
157 h.publish(new LogRecord(Level.SEVERE, in testClose_SufficientPrivilege_NormalClose()
178 h.publish(new LogRecord(Level.SEVERE, in testClose_SufficientPrivilege_Exception()
214 LogRecord r = new LogRecord(Level.INFO, "testPublish_NoFilter"); in testPublish_NoFilter()
255 LogRecord r = new LogRecord(Level.INFO, "testPublish_WithFilter"); in testPublish_AfterResetSystemErr()
275 LogRecord r = new LogRecord(Level.INFO, "testPublish_WithFilter"); in testPublish_WithFilter()
327 LogRecord r = new LogRecord(Level.INFO, ""); in testPublish_EmptyMsg()
343 LogRecord r = new LogRecord(Level.INFO, null); in testPublish_NullMsg()
363 LogRecord r1 = new LogRecord(Level.INFO, "testPublish_Record1"); in testPublish_AfterClose()
[all …]
DFileHandlerTest.java37 import java.util.logging.LogRecord;
60 LogRecord r;
74 r = new LogRecord(Level.CONFIG, "msg"); in setUp()
184 new LogRecord[] { r, null, r, null, r, null, r }, in testFileHandler()
214 assertFileContent(homepath, filename, new LogRecord[] { r }, formatter, encoding); in assertFileContent()
218 LogRecord[] lr, Formatter formatter, String encoding) throws Exception { in assertFileContent()
312 assertFileContent(tempPath, "testLimitCount0", new LogRecord[0], in testLimitAndCount()
318 LogRecord[] rs = new LogRecord[10]; in testLimitAndCount()
321 rs[i] = new LogRecord(Level.SEVERE, "msg" + i); in testLimitAndCount()
327 rs[i] = new LogRecord(Level.SEVERE, "msg" + i); in testLimitAndCount()
[all …]
DSocketHandlerTest.java34 import java.util.logging.LogRecord;
294 h.publish(new LogRecord(Level.SEVERE, "test")); in testConstructor_InvalidBasicProperties()
310 h.publish(new LogRecord(Level.SEVERE, "test")); in testConstructor_InvalidBasicProperties()
425 h.publish(new LogRecord(Level.SEVERE, in testClose_SufficientPrivilege_NormalClose()
480 LogRecord r = new LogRecord(Level.INFO, "testPublish_NoFilter"); in testPublish_NoFilter()
521 LogRecord r = new LogRecord(Level.INFO, "testPublish_WithFilter"); in testPublish_WithFilter()
574 LogRecord r = new LogRecord(Level.INFO, ""); in testPublish_EmptyMsg()
599 LogRecord r = new LogRecord(Level.INFO, null); in testPublish_NullMsg()
626 LogRecord r = new LogRecord(Level.INFO, "testPublish_NoFormatter"); in testPublish_AfterClose()
643 public boolean isLoggable(LogRecord record) { in isLoggable()
[all …]
DXMLFormatterTest.java30 import java.util.logging.LogRecord;
42 LogRecord lr = null;
48 lr = new LogRecord(Level.SEVERE, "pattern"); in setUp()
176 lr = new LogRecord(Level.SEVERE, null);
188 LogRecord logRecord = new LogRecord(Level.INFO, "message:<init>&");
228 public void publish(LogRecord record) {
DHandlerTest.java31 import java.util.logging.LogRecord;
285 LogRecord r = new LogRecord(Level.CONFIG, null); in testIsLoggable_NoFilter()
304 LogRecord r = new LogRecord(Level.CONFIG, null); in testIsLoggable_WithFilter()
342 public void publish(LogRecord record) { in publish()
355 public boolean isLoggable(LogRecord record) { in isLoggable()
DSimpleFormatterTest.java23 import java.util.logging.LogRecord;
35 LogRecord lr;
45 lr = new LogRecord(Level.FINE, MSG); in setUp()
54 sf.format(new LogRecord(Level.SEVERE, null)); in testFormatNull()
DFormatterTest.java25 import java.util.logging.LogRecord;
32 LogRecord r;
42 r = new LogRecord(Level.FINE, MSG); in setUp()
129 public String format(LogRecord arg0) { in format()
DFilterTest.java21 import java.util.logging.LogRecord;
39 public boolean isLoggable(LogRecord record) { in isLoggable()
/external/guava/guava-testlib/src/com/google/common/testing/
DTestLogHandler.java25 import java.util.logging.LogRecord;
59 private final List<LogRecord> list =
60 Collections.synchronizedList(new ArrayList<LogRecord>());
66 public void publish(@Nullable LogRecord record) { in publish()
84 public List<LogRecord> getStoredLogRecords() { in getStoredLogRecords()
85 List<LogRecord> result = new ArrayList<LogRecord>(list); in getStoredLogRecords()
/external/slf4j/log4j-over-slf4j/src/test/java/org/dummy/
DListHandler.java30 import java.util.logging.LogRecord;
34 List<LogRecord> list = new ArrayList<LogRecord>();
44 public void publish(LogRecord logRecord) { in publish()
DBug139.java28 import java.util.logging.LogRecord;
53 LogRecord logRecord = (LogRecord) listHandler.list.get(i); in test()
DBug131.java28 import java.util.logging.LogRecord;
64 LogRecord logRecord = (LogRecord) listHandler.list.get(i); in testBug131()
/external/slf4j/jul-to-slf4j/src/main/java/org/slf4j/bridge/
DSLF4JBridgeHandler.java33 import java.util.logging.LogRecord;
197 protected Logger getSLF4JLogger(LogRecord record) { in getSLF4JLogger()
205 protected void callLocationAwareLogger(LocationAwareLogger lal, LogRecord record) { in callLocationAwareLogger()
224 protected void callPlainSLF4JLogger(Logger slf4jLogger, LogRecord record) { in callPlainSLF4JLogger()
246 private String getMessageI18N(LogRecord record) { in getMessageI18N()
281 public void publish(LogRecord record) { in publish()
/external/slf4j/slf4j-jdk14/src/test/java/org/slf4j/
DInvocationTest.java36 import java.util.logging.LogRecord;
167 LogRecord logRecord = listHandler.recordList.get(index); in assertLogMessage()
173 LogRecord logRecord = listHandler.recordList.get(index); in assertException()
188 List<LogRecord> recordList = new ArrayList<LogRecord>();
191 public void publish(LogRecord record) { in publish()
/external/nist-sip/java/gov/nist/javax/sip/stack/
DDefaultMessageLogFactory.java3 import gov.nist.javax.sip.LogRecord;
15 public LogRecord createLogRecord(String message, String source, in createLogRecord()
22 public LogRecord createLogRecord(String message, String source, in createLogRecord()
/external/slf4j/slf4j-jdk14/src/test/java/org/slf4j/impl/
DJDK14AdapterLoggerNameTest.java28 import java.util.logging.LogRecord;
76 public LogRecord record;
84 public void publish(LogRecord record) { in publish()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DManagedChannelOrphanWrapperTest.java37 import java.util.logging.LogRecord;
60 final List<LogRecord> records = new ArrayList<>(1); in orphanedChannelsAreLogged()
66 public boolean isLoggable(LogRecord record) { in orphanedChannelsAreLogged()
91 LogRecord lr; in orphanedChannelsAreLogged()
/external/guava/guava-testlib/test/com/google/common/testing/
DTestLogHandlerTest.java22 import java.util.logging.LogRecord;
57 LogRecord record = handler.getStoredLogRecords().get(0); in test()
69 for (LogRecord unused : handler.getStoredLogRecords()) { in testConcurrentModification()
/external/grpc-grpc-java/gae-interop-testing/gae-jdk8/src/main/java/io/grpc/testing/integration/
DNettyClientInteropServlet.java33 import java.util.logging.LogRecord;
55 private Queue<LogRecord> loggedMessages = new ConcurrentLinkedQueue<>();
58 public void publish(LogRecord logRecord) { in publish()
71 for (LogRecord loggedMessage : loggedMessages) { in getLogOutput()
/external/testng/src/main/java/org/testng/log/
DTextFormatter.java3 import java.util.logging.LogRecord;
17 public synchronized String format(LogRecord record) { in format()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DTestLogHandler.java21 import java.util.logging.LogRecord;
30 @Override public synchronized void publish(LogRecord logRecord) { in publish()

123