Home
last modified time | relevance | path

Searched refs:record (Results 1 – 22 of 22) sorted by relevance

/libcore/ojluni/src/main/java/java/util/logging/
DSimpleFormatter.java140 public synchronized String format(LogRecord record) { in format() argument
141 dat.setTime(record.getMillis()); in format()
143 if (record.getSourceClassName() != null) { in format()
144 source = record.getSourceClassName(); in format()
145 if (record.getSourceMethodName() != null) { in format()
146 source += " " + record.getSourceMethodName(); in format()
149 source = record.getLoggerName(); in format()
151 String message = formatMessage(record); in format()
153 if (record.getThrown() != null) { in format()
157 record.getThrown().printStackTrace(pw); in format()
[all …]
DXMLFormatter.java105 public String format(LogRecord record) { in format() argument
110 appendISO8601(sb, record.getMillis()); in format()
114 sb.append(record.getMillis()); in format()
118 sb.append(record.getSequenceNumber()); in format()
121 String name = record.getLoggerName(); in format()
129 escape(sb, record.getLevel().toString()); in format()
132 if (record.getSourceClassName() != null) { in format()
134 escape(sb, record.getSourceClassName()); in format()
138 if (record.getSourceMethodName() != null) { in format()
140 escape(sb, record.getSourceMethodName()); in format()
[all …]
DFormatter.java62 public abstract String format(LogRecord record); in format() argument
113 public synchronized String formatMessage(LogRecord record) { in formatMessage() argument
114 String format = record.getMessage(); in formatMessage()
115 java.util.ResourceBundle catalog = record.getResourceBundle(); in formatMessage()
118 format = catalog.getString(record.getMessage()); in formatMessage()
121 format = record.getMessage(); in formatMessage()
126 Object parameters[] = record.getParameters(); in formatMessage()
DMemoryHandler.java203 public synchronized void publish(LogRecord record) { in publish() argument
204 if (!isLoggable(record)) { in publish()
208 buffer[ix] = record; in publish()
215 if (record.getLevel().intValue() >= pushLevel.intValue()) { in publish()
228 LogRecord record = buffer[ix]; in push() local
229 target.publish(record); in push()
300 public boolean isLoggable(LogRecord record) { in isLoggable() argument
301 return super.isLoggable(record); in isLoggable()
DStreamHandler.java205 public synchronized void publish(LogRecord record) { in publish() argument
206 if (!isLoggable(record)) { in publish()
211 msg = getFormatter().format(record); in publish()
245 public boolean isLoggable(LogRecord record) { in isLoggable() argument
246 if (writer == null || record == null) { in isLoggable()
249 return super.isLoggable(record); in isLoggable()
DHandler.java90 public abstract void publish(LogRecord record); in publish() argument
292 public boolean isLoggable(LogRecord record) { in isLoggable() argument
294 if (record.getLevel().intValue() < levelValue || levelValue == offValue) { in isLoggable()
301 return filter.isLoggable(record); in isLoggable()
DSocketHandler.java206 public synchronized void publish(LogRecord record) { in publish() argument
207 if (!isLoggable(record)) { in publish()
210 super.publish(record); in publish()
DConsoleHandler.java115 public void publish(LogRecord record) { in publish() argument
116 super.publish(record); in publish()
DFilter.java48 public boolean isLoggable(LogRecord record); in isLoggable() argument
DFileHandler.java682 public synchronized void publish(LogRecord record) { in publish() argument
683 if (!isLoggable(record)) { in publish()
686 super.publish(record); in publish()
DLogger.java719 public void log(LogRecord record) { in log() argument
720 if (!isLoggable(record.getLevel())) { in log()
724 if (theFilter != null && !theFilter.isLoggable(record)) { in log()
738 handler.publish(record); in log()
DLogManager.java1652 public void log(LogRecord record) { in log() argument
1655 super.log(record); in log()
/libcore/luni/src/test/java/libcore/java/util/logging/
DOldMemoryHandlerTest.java85 public boolean isLoggable(LogRecord record) { in isLoggable() argument
86 return !record.getMessage().equals("false"); in isLoggable()
93 public void publish(LogRecord record) {} in publish() argument
DOldXMLFormatterTest.java72 public void publish(LogRecord record) {} in publish() argument
DOldLoggerTest.java222 public void publish(LogRecord record) {} in publish() argument
226 public boolean isLoggable(LogRecord record) { in isLoggable() argument
DOldLogManagerTest.java253 public void publish(LogRecord record) {} in publish() argument
DOldFileHandlerTest.java479 public boolean isLoggable(LogRecord record) { in isLoggable() argument
480 return !record.getMessage().equals("false"); in isLoggable()
/libcore/ojluni/annotations/hiddenapi/java/util/logging/
DHandler.java37 public abstract void publish(java.util.logging.LogRecord record); in publish() argument
91 public boolean isLoggable(java.util.logging.LogRecord record) { in isLoggable() argument
DLogManager.java489 public void log(java.util.logging.LogRecord record) { in log() argument
DLogger.java112 public void log(java.util.logging.LogRecord record) { in log() argument
/libcore/luni/src/test/java/libcore/libcore/net/
DNetworkSecurityPolicyTest.java214 LogRecord record = new LogRecord(Level.INFO, "A log record"); in testCleartextTrafficPolicyWithLoggingSocketHandler() local
215 assertTrue(logger.isLoggable(record)); in testCleartextTrafficPolicyWithLoggingSocketHandler()
216 logger.publish(record); in testCleartextTrafficPolicyWithLoggingSocketHandler()
/libcore/ojluni/annotations/sdk/nullability/java/util/logging/
DLogger.annotated.java58 public void log(@libcore.util.NonNull java.util.logging.LogRecord record) { throw new RuntimeExcept… in log() argument