/libcore/ojluni/src/main/java/java/util/logging/ |
H A D | Filter.java | 44 * Check if a given log record should be published. 45 * @param record a LogRecord 46 * @return true if the log record should be published. 48 public boolean isLoggable(LogRecord record); argument
|
H A D | SimpleFormatter.java | 61 // format string for printing the log record 83 * {@linkplain LogRecord#getMillis event time} of the log record.</li> 96 * associated with the log record and its backtrace 137 * @param record the log record to be formatted. 138 * @return a formatted log record 140 public synchronized String format(LogRecord record) { argument 141 dat.setTime(record.getMillis()); 143 if (record.getSourceClassName() != null) { 144 source = record [all...] |
H A D | Formatter.java | 52 * Format the given log record and return the formatted string. 59 * @param record the log record to be formatted. 60 * @return the formatted log record 62 public abstract String format(LogRecord record); argument 93 * Localize and format the message string from a log record. This 98 * the record's ResourceBundle. (If there is no ResourceBundle, 110 * @param record the log record containing the raw message 113 public synchronized String formatMessage(LogRecord record) { argument [all...] |
H A D | XMLFormatter.java | 102 * @param record the log record to be formatted. 103 * @return a formatted log record 105 public String format(LogRecord record) { argument 107 sb.append("<record>\n"); 110 appendISO8601(sb, record.getMillis()); 114 sb.append(record.getMillis()); 118 sb.append(record.getSequenceNumber()); 121 String name = record.getLoggerName(); 129 escape(sb, record [all...] |
H A D | MemoryHandler.java | 48 * <tt>LogRecord</tt> and calls <tt>push</tt> if a record matches some 190 * method is called to check if the given log record is loggable. 191 * If not we return. Otherwise the given record is copied into 192 * an internal circular buffer. Then the record's level property is 198 * @param record description of the log event. A null record is 202 public synchronized void publish(LogRecord record) { argument 203 if (!isLoggable(record)) { 207 buffer[ix] = record; 214 if (record 299 isLoggable(LogRecord record) argument [all...] |
H A D | StreamHandler.java | 193 * <tt>Filter</tt> to check if the record should be published. If so, 194 * it calls its <tt>Formatter</tt> to format the record and then writes 201 * @param record description of the log event. A null record is 205 public synchronized void publish(LogRecord record) { argument 206 if (!isLoggable(record)) { 211 msg = getFormatter().format(record); 240 * @param record a <tt>LogRecord</tt> 245 public boolean isLoggable(LogRecord record) { argument 246 if (writer == null || record [all...] |
H A D | ConsoleHandler.java | 111 * @param record description of the log event. A null record is 115 public void publish(LogRecord record) { argument 116 super.publish(record);
|
H A D | Handler.java | 87 * @param record description of the log event. A null record is 90 public abstract void publish(LogRecord record); argument 288 * @param record a <tt>LogRecord</tt> 292 public boolean isLoggable(LogRecord record) { argument 294 if (record.getLevel().intValue() < levelValue || levelValue == offValue) { 301 return filter.isLoggable(record);
|
H A D | SocketHandler.java | 201 * @param record description of the log event. A null record is 205 public synchronized void publish(LogRecord record) { argument 206 if (!isLoggable(record)) { 209 super.publish(record);
|
H A D | FileHandler.java | 63 * record is flushed out when it is complete. 429 // so we can record exceptions. 677 * @param record description of the log event. A null record is 681 public synchronized void publish(LogRecord record) { argument 682 if (!isLoggable(record)) { 685 super.publish(record);
|
H A D | Logger.java | 88 * record should be published. If that passes it will then publish 693 * call this Filter to check if a log record should really 722 * @param record the LogRecord to be published 724 public void log(LogRecord record) { argument 725 if (!isLoggable(record.getLevel())) { 729 if (theFilter != null && !theFilter.isLoggable(record)) { 743 handler.publish(record);
|
H A D | LogManager.java | 1650 public void log(LogRecord record) { argument 1653 super.log(record);
|
/libcore/support/src/test/java/libcore/tlswire/record/ |
H A D | TlsProtocols.java | 17 package libcore.tlswire.record;
|
H A D | TlsRecord.java | 17 package libcore.tlswire.record; 24 * TLS Record Protocol record from TLS 1.2 RFC 5246.
|
/libcore/luni/src/test/java/libcore/java/util/logging/ |
H A D | OldMemoryHandlerTest.java | 85 public boolean isLoggable(LogRecord record) { argument 86 return !record.getMessage().equals("false"); 93 public void publish(LogRecord record) {} argument
|
H A D | OldXMLFormatterTest.java | 72 public void publish(LogRecord record) {} argument
|
H A D | OldLoggerTest.java | 222 public void publish(LogRecord record) {} argument 226 public boolean isLoggable(LogRecord record) { argument
|
H A D | OldFileHandlerTest.java | 356 // if one record is null and is not the last record, means 480 public boolean isLoggable(LogRecord record) { argument 481 return !record.getMessage().equals("false");
|
H A D | OldLogManagerTest.java | 253 public void publish(LogRecord record) {} argument
|
/libcore/luni/src/test/java/libcore/net/ |
H A D | NetworkSecurityPolicyTest.java | 213 LogRecord record = new LogRecord(Level.INFO, "A log record"); 214 assertTrue(logger.isLoggable(record)); 215 logger.publish(record);
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
H A D | SSLSocketTest.java | 114 import libcore.tlswire.record.TlsProtocols; 115 import libcore.tlswire.record.TlsRecord; 2025 assertEquals("TLS record type", TlsProtocols.HANDSHAKE, firstReceivedTlsRecord.type); 2146 TlsRecord record = captureTlsHandshakeFirstTlsRecord(sslSocketFactory); 2147 assertEquals("TLS record type", TlsProtocols.HANDSHAKE, record.type); 2148 ByteArrayInputStream fragmentIn = new ByteArrayInputStream(record.fragment); 2162 TlsRecord record = TlsRecord.read(new DataInputStream(firstReceivedChunkIn)); 2166 return record;
|