Searched refs:record (Results 1 - 20 of 20) sorted by relevance

/libcore/ojluni/src/main/java/java/util/logging/
H A DFilter.java44 * 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 DSimpleFormatter.java61 // 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 DFormatter.java52 * 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 DXMLFormatter.java102 * @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 DMemoryHandler.java48 * <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 DStreamHandler.java193 * <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 DConsoleHandler.java111 * @param record description of the log event. A null record is
115 public void publish(LogRecord record) { argument
116 super.publish(record);
H A DHandler.java87 * @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 DSocketHandler.java201 * @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 DFileHandler.java63 * 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 DLogger.java88 * 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 DLogManager.java1650 public void log(LogRecord record) { argument
1653 super.log(record);
/libcore/support/src/test/java/libcore/tlswire/record/
H A DTlsProtocols.java17 package libcore.tlswire.record;
H A DTlsRecord.java17 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 DOldMemoryHandlerTest.java85 public boolean isLoggable(LogRecord record) { argument
86 return !record.getMessage().equals("false");
93 public void publish(LogRecord record) {} argument
H A DOldXMLFormatterTest.java72 public void publish(LogRecord record) {} argument
H A DOldLoggerTest.java222 public void publish(LogRecord record) {} argument
226 public boolean isLoggable(LogRecord record) { argument
H A DOldFileHandlerTest.java356 // 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 DOldLogManagerTest.java253 public void publish(LogRecord record) {} argument
/libcore/luni/src/test/java/libcore/libcore/net/
H A DNetworkSecurityPolicyTest.java214 LogRecord record = new LogRecord(Level.INFO, "A log record");
215 assertTrue(logger.isLoggable(record));
216 logger.publish(record);

Completed in 171 milliseconds