/libcore/ojluni/src/main/java/java/util/logging/ |
Filter.java | 35 * if a given LogRecord should be published. If isLoggable returns 36 * false, the LogRecord will be discarded. 45 * @param record a LogRecord 48 public boolean isLoggable(LogRecord record);
|
Formatter.java | 33 * with it. The Formatter takes a LogRecord and converts it to 55 * localized and formatted version of the LogRecord's message field. 62 public abstract String format(LogRecord record); 113 public synchronized String formatMessage(LogRecord record) {
|
MemoryHandler.java | 42 * An incoming <tt>LogRecord</tt> has a type that is greater than 48 * <tt>LogRecord</tt> and calls <tt>push</tt> if a record matches some 95 private LogRecord buffer[]; 152 buffer = new LogRecord[size]; 187 * Store a <tt>LogRecord</tt> in an internal buffer. 202 public synchronized void publish(LogRecord record) { 227 LogRecord record = buffer[ix]; 260 * Set the <tt>pushLevel</tt>. After a <tt>LogRecord</tt> is copied 287 * <tt>LogRecord</tt> into its internal buffer. 289 * This method checks if the <tt>LogRecord</tt> has an appropriate level an [all...] |
Logger.java | 86 * a LogRecord to describe the logging message. It will then call a 89 * the LogRecord to its output Handlers. By default, loggers also 168 * until a LogRecord is actually written to an external sink. 211 * should delegate operations such as "isLoggable" and "log(LogRecord)" 213 * output, subclasses need only override the log(LogRecord) method. 215 * log(LogRecord) method. [all...] |
/external/nist-sip/java/gov/nist/javax/sip/ |
LogRecord.java | 10 public interface LogRecord {
|
LogRecordFactory.java | 33 public LogRecord createLogRecord(String message, String source,
|
/external/slf4j/log4j-over-slf4j/src/test/java/org/dummy/ |
ListHandler.java | 30 import java.util.logging.LogRecord; 34 List<LogRecord> list = new ArrayList<LogRecord>(); 44 public void publish(LogRecord logRecord) { 45 logRecord.getSourceClassName(); 46 list.add(logRecord);
|
Bug131.java | 28 import java.util.logging.LogRecord; 64 LogRecord logRecord = (LogRecord) listHandler.list.get(i); 65 assertEquals("testBug131", logRecord.getSourceMethodName());
|
Bug139.java | 28 import java.util.logging.LogRecord; 53 LogRecord logRecord = (LogRecord) listHandler.list.get(i); 54 assertEquals("test", logRecord.getSourceMethodName());
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
TestLogHandler.java | 25 import java.util.logging.LogRecord; 48 * LogRecord firstRecord = handler.getStoredLogRecords().get(0); 59 private final List<LogRecord> list = 60 Collections.synchronizedList(new ArrayList<LogRecord>()); 66 public void publish(@Nullable LogRecord record) { 82 * @return unmodifiable LogRecord list of all logged records 84 public List<LogRecord> getStoredLogRecords() { 85 List<LogRecord> result = new ArrayList<LogRecord>(list);
|
/external/testng/src/main/java/org/testng/log/ |
TextFormatter.java | 3 import java.util.logging.LogRecord; 17 public synchronized String format(LogRecord record) {
|
/libcore/luni/src/test/java/libcore/java/util/logging/ |
OldLogRecordTest.java | 21 import java.util.logging.LogRecord; 28 private LogRecord lr = new LogRecord(Level.CONFIG, MSG); 37 LogRecord lr2 = new LogRecord(Level.CONFIG, "MSG2"); 76 public LogRecord lr = null; //will be update by the thread 83 lr = new LogRecord(Level.CONFIG, "msg thread");
|
OldFormatterTest.java | 23 import java.util.logging.LogRecord; 31 LogRecord r = new LogRecord(Level.FINE, MSG); 70 public String format(LogRecord arg0) {
|
OldXMLFormatterTest.java | 23 import java.util.logging.LogRecord; 31 LogRecord lr = null; 37 lr = new LogRecord(Level.SEVERE, "pattern"); 72 public void publish(LogRecord record) {}
|
OldMemoryHandlerTest.java | 29 import java.util.logging.LogRecord; 70 assertTrue(handler.isLoggable(new LogRecord(Level.INFO, "1"))); 71 assertTrue(handler.isLoggable(new LogRecord(Level.WARNING, "2"))); 72 assertTrue(handler.isLoggable(new LogRecord(Level.SEVERE, "3"))); 85 public boolean isLoggable(LogRecord record) { 93 public void publish(LogRecord record) {}
|
OldFileHandlerTest.java | 35 import java.util.logging.LogRecord; 48 LogRecord r; 78 r = new LogRecord(Level.CONFIG, "msg"); 113 new LogRecord[] { r, null, r, null, r, null, r }, 137 assertFileContent(TEMPPATH + SEP + "log", "/string", new LogRecord[] { 224 new LogRecord[] { r, null, r, null, r, null, r }, 228 new LogRecord[] { r }, new MockFormatter()); 260 assertFileContent(TEMPPATH + SEP + "log", "/string", new LogRecord[] { 310 new LogRecord[] { r, null, r, null, r, null, r }, 314 new LogRecord[] { r }, new MockFormatter()) [all...] |
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/ |
FilterTest.java | 21 import java.util.logging.LogRecord; 39 public boolean isLoggable(LogRecord record) {
|
LogRecordTest.java | 25 import java.util.logging.LogRecord; 37 private LogRecord lr; 43 lr = new LogRecord(Level.CONFIG, MSG); 49 new LogRecord(null, null); 54 new LogRecord(null, MSG); 58 LogRecord r = new LogRecord(Level.WARNING, null); 112 lr = new LogRecord(Level.ALL, null); 147 lr = new LogRecord(Level.SEVERE, MSG); 154 lr = new LogRecord(Level.SEVERE, MSG) [all...] |
ConsoleHandlerTest.java | 32 import java.util.logging.LogRecord; 142 h.publish(new LogRecord(Level.SEVERE, "test")); 157 h.publish(new LogRecord(Level.SEVERE, 178 h.publish(new LogRecord(Level.SEVERE, 214 LogRecord r = new LogRecord(Level.INFO, "testPublish_NoFilter"); 255 LogRecord r = new LogRecord(Level.INFO, "testPublish_WithFilter"); 275 LogRecord r = new LogRecord(Level.INFO, "testPublish_WithFilter") [all...] |
MemoryHandlerTest.java | 31 import java.util.logging.LogRecord; 113 assertFalse(handler.isLoggable(new LogRecord(Level.SEVERE, "test"))); 128 assertTrue(handler.isLoggable(new LogRecord(Level.SEVERE, "test"))); 138 LogRecord record = new LogRecord(Level.FINER, "MSG1"); 141 record = new LogRecord(Level.FINE, "MSG2"); 144 record = new LogRecord(Level.CONFIG, "MSG3"); 147 record = new LogRecord(Level.CONFIG, "false"); 151 record = new LogRecord(Level.CONFIG, "false"); 300 LogRecord lr = new LogRecord(Level.CONFIG, "lr") [all...] |
StreamHandlerTest.java | 37 import java.util.logging.LogRecord; 158 h.publish(new LogRecord(Level.SEVERE, "test")); 302 h.publish(new LogRecord(Level.SEVERE, 322 h.publish(new LogRecord(Level.SEVERE, 380 LogRecord r = new LogRecord(Level.INFO, null); 400 LogRecord r = new LogRecord(Level.INFO, null); 420 LogRecord r = new LogRecord(Level.INFO, null) [all...] |
/external/nist-sip/java/gov/nist/javax/sip/stack/ |
DefaultMessageLogFactory.java | 3 import gov.nist.javax.sip.LogRecord; 15 public LogRecord createLogRecord(String message, String source, 22 public LogRecord createLogRecord(String message, String source,
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
TestLogHandler.java | 21 import java.util.logging.LogRecord; 30 @Override public synchronized void publish(LogRecord logRecord) { 31 logs.add(logRecord.getLevel() + ": " + logRecord.getMessage());
|
/external/guava/guava-testlib/test/com/google/common/testing/ |
TestLogHandlerTest.java | 22 import java.util.logging.LogRecord; 57 LogRecord record = handler.getStoredLogRecords().get(0); 69 for (LogRecord unused : handler.getStoredLogRecords()) {
|
/external/slf4j/slf4j-jdk14/src/test/java/org/slf4j/impl/ |
JDK14AdapterLoggerNameTest.java | 28 import java.util.logging.LogRecord; 76 public LogRecord record; 84 public void publish(LogRecord record) {
|