/libcore/ojluni/src/main/java/java/util/logging/ |
D | SimpleFormatter.java | 140 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 …]
|
D | XMLFormatter.java | 105 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 …]
|
D | Formatter.java | 62 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()
|
D | MemoryHandler.java | 203 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()
|
D | StreamHandler.java | 205 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()
|
D | Handler.java | 90 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()
|
D | SocketHandler.java | 206 public synchronized void publish(LogRecord record) { in publish() argument 207 if (!isLoggable(record)) { in publish() 210 super.publish(record); in publish()
|
D | ConsoleHandler.java | 115 public void publish(LogRecord record) { in publish() argument 116 super.publish(record); in publish()
|
D | Filter.java | 48 public boolean isLoggable(LogRecord record); in isLoggable() argument
|
D | FileHandler.java | 682 public synchronized void publish(LogRecord record) { in publish() argument 683 if (!isLoggable(record)) { in publish() 686 super.publish(record); in publish()
|
D | Logger.java | 719 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()
|
D | LogManager.java | 1652 public void log(LogRecord record) { in log() argument 1655 super.log(record); in log()
|
/libcore/luni/src/test/java/libcore/java/util/logging/ |
D | OldMemoryHandlerTest.java | 85 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
|
D | OldXMLFormatterTest.java | 72 public void publish(LogRecord record) {} in publish() argument
|
D | OldLoggerTest.java | 222 public void publish(LogRecord record) {} in publish() argument 226 public boolean isLoggable(LogRecord record) { in isLoggable() argument
|
D | OldLogManagerTest.java | 253 public void publish(LogRecord record) {} in publish() argument
|
D | OldFileHandlerTest.java | 479 public boolean isLoggable(LogRecord record) { in isLoggable() argument 480 return !record.getMessage().equals("false"); in isLoggable()
|
/libcore/ojluni/annotations/hiddenapi/java/util/logging/ |
D | Handler.java | 37 public abstract void publish(java.util.logging.LogRecord record); in publish() argument 91 public boolean isLoggable(java.util.logging.LogRecord record) { in isLoggable() argument
|
D | LogManager.java | 489 public void log(java.util.logging.LogRecord record) { in log() argument
|
D | Logger.java | 112 public void log(java.util.logging.LogRecord record) { in log() argument
|
/libcore/luni/src/test/java/libcore/libcore/net/ |
D | NetworkSecurityPolicyTest.java | 214 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/ |
D | Logger.annotated.java | 58 public void log(@libcore.util.NonNull java.util.logging.LogRecord record) { throw new RuntimeExcept… in log() argument
|