/dalvik/libcore/logging/src/main/java/java/util/logging/ |
H A D | Filter.java | 27 * Checks {@code record} to determine if it should be logged. 29 * @param record 31 * @return {@code true} if the supplied log record needs to be logged, 34 boolean isLoggable(LogRecord record); argument
|
H A D | ConsoleHandler.java | 62 * Logs a record if necessary. A flush operation will be done. 64 * @param record 65 * the log record to be logged. 68 public void publish(LogRecord record) { argument 69 super.publish(record);
|
H A D | Logger.java | 85 LogRecord record = new LogRecord(level, message); 86 record.setLoggerName(source.name); 87 source.setResourceBundle(record); 88 source.log(record); 715 private void setResourceBundle(LogRecord record) { argument 719 record.setResourceBundle(p.resourceBundle); 720 record.setResourceBundleName(resourceBundleName); 727 * Logs a message indicating that a method has been entered. A log record 741 LogRecord record = new LogRecord(Level.FINER, "ENTRY"); //$NON-NLS-1$ 742 record 1071 log(LogRecord record) argument [all...] |
H A D | MemoryHandler.java | 196 * Put a given {@code LogRecord} into internal buffer. If given record is 198 * Furthermore if the record's level is not less than the push level, the 202 * @param record 203 * the log record 206 public synchronized void publish(LogRecord record) { argument 207 if (!isLoggable(record)) { 213 buffer[cursor++] = record; 214 if (record.getLevel().intValue() >= push.intValue()) { 238 * @param record 244 public boolean isLoggable(LogRecord record) { argument [all...] |
H A D | StreamHandler.java | 290 * Accepts a logging request. The log record is formatted and written to the 293 * <li>the supplied log record has at least the required logging level; 294 * <li>the supplied log record passes the filter associated with this 298 * If it is the first time a log record is written out, the head string of 301 * @param record 302 * the log record to be logged. 305 public synchronized void publish(LogRecord record) { argument 307 if (this.isLoggable(record)) { 313 msg = getFormatter().format(record); 316 // record 343 isLoggable(LogRecord record) argument [all...] |
H A D | SocketHandler.java | 52 * record has been published. 167 * Logs a record if necessary. A flush operation will be done afterwards. 169 * @param record 170 * the log record to be logged. 173 public void publish(LogRecord record) { argument 174 super.publish(record);
|
H A D | Handler.java | 184 * @param record 185 * the log record to be logged; {@code null} records are ignored. 187 public abstract void publish(LogRecord record); argument 242 * Determines whether the supplied log record needs to be logged. The 245 * @param record 246 * the log record to be checked. 247 * @return {@code true} if the supplied log record needs to be logged, 250 public boolean isLoggable(LogRecord record) { argument 251 if (null == record) { 256 } else if (record [all...] |
H A D | FileHandler.java | 44 * By default, the I/O buffering mechanism is enabled, but when each log record 570 * @param record 571 * the log record to publish. 574 public synchronized void publish(LogRecord record) { argument 575 super.publish(record);
|
/dalvik/libcore/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/ |
H A D | FilterTest.java | 65 public boolean isLoggable(LogRecord record) { argument
|
H A D | MemoryHandlerTest.java | 234 LogRecord record = new LogRecord(Level.FINER, "MSG1"); 235 assertFalse(handler.isLoggable(record)); 238 record = new LogRecord(Level.FINE, "MSG2"); 239 assertTrue(handler.isLoggable(record)); 244 record = new LogRecord(Level.CONFIG, "MSG3"); 245 assertTrue(handler.isLoggable(record)); 247 record = new LogRecord(Level.CONFIG, "false"); 248 assertFalse(handler.isLoggable(record)); 251 record = new LogRecord(Level.CONFIG, "false"); 252 assertTrue(handler.isLoggable(record)); 519 isLoggable(LogRecord record) argument 533 publish(LogRecord record) argument [all...] |
H A D | LogRecordTest.java | 688 public void publish(LogRecord record) { argument 689 className = record.getSourceClassName(); 690 methodName = record.getSourceMethodName(); 733 public void log(LogRecord record) { argument 734 if (isLoggable(record.getLevel())) { 739 ha[i].publish(record); 747 ha[i].publish(record);
|
H A D | HandlerTest.java | 719 public void publish(LogRecord record) { argument 755 public boolean isLoggable(LogRecord record) { argument 756 CallVerificationStack.getInstance().push(record);
|
H A D | ConsoleHandlerTest.java | 205 * Test close() when having sufficient privilege, and a record has been 210 notes = "Verifies close() when having sufficient privilege, and a record has been written to the output stream.", 255 * Test close() when having sufficient privilege, and no record has been 260 notes = "Checks close() when having sufficient privilege, and no record has been written to the output stream", 305 * Test publish(), use no filter, having output stream, normal log record. 309 notes = "Verifies publish(), use no filter, having output stream, normal log record.", 377 * Test publish(), use a filter, having output stream, normal log record. 381 notes = "Verifies publish(), use a filter, having output stream, normal log record.", 422 * Test publish(), null log record, having output stream, spec said 428 notes = "Verifies publish(), null log record, havin 573 isLoggable(LogRecord record) argument [all...] |
H A D | StreamHandlerTest.java | 415 * Test close() when having sufficient privilege, and a record has been 420 notes = "Verifies close() when having sufficient privilege, and a record has been written to the output stream.", 460 * Test close() when having sufficient privilege, and no record has been 465 notes = "Verifies close() method when having sufficient privilege, and no record has been written to the output stream.", 631 * Test isLoggable(), null log record, having output stream. Handler should 636 notes = "Verifies isLoggable(), null log record, having output stream. Handler should call ErrorManager to handle exceptional case.", 647 * Test isLoggable(), null log record, without output stream 651 notes = "Verifies isLoggable(), null log record, without output stream.", 661 * Test publish(), use no filter, having output stream, normal log record. 665 notes = "Verifies publish(), use no filter, having output stream, normal log record 1180 isLoggable(LogRecord record) argument [all...] |
H A D | XMLFormatterTest.java | 153 assertTrue(output.indexOf("<record>") >= 0); 180 assertTrue(output.indexOf("<record>") >= 0); 294 public void publish(LogRecord record) { argument
|
H A D | SocketHandlerTest.java | 553 * Test close() when having sufficient privilege, and a record has been 558 notes = "Verifies close() when having sufficient privilege, and a record has been written to the output stream.", 587 * Test close() when having sufficient privilege, and no record has been 592 notes = "Verifies close() when having sufficient privilege, and no record has been written to the output stream.", 659 * Test publish(), use no filter, having output stream, normal log record. 663 notes = "Verifies publish(), use no filter, having output stream, normal log record.", 704 * Test publish(), use a filter, having output stream, normal log record. 708 notes = "Verifies publish(), use a filter, having output stream, normal log record.", 740 * Test publish(), null log record, having output stream 744 notes = "Verifies publish(), null log record, havin 877 isLoggable(LogRecord record) argument 988 publish(LogRecord record) argument [all...] |
H A D | FileHandlerTest.java | 466 // output 3 times, and only one record left 492 // if one record is null and is not the last record, means 988 * test for method public void publish(LogRecord record) 1098 public boolean isLoggable(LogRecord record) { argument 1099 return !record.getMessage().equals("false");
|
H A D | LoggerTest.java | 4087 * Test log(LogRecord) for a normal log record. Meanwhile the logger has an 4117 * Test log(LogRecord) with null log record. 4135 * Test log(LogRecord) for a normal log record. Meanwhile the logger has an 4159 * Test log(LogRecord) for a normal log record. Meanwhile the logger has an 4160 * appropriate level, a filter that accepts the fed log record, no parent. 4193 * Test log(LogRecord) for a normal log record. Meanwhile the logger has an 4194 * appropriate level, a filter that rejects the fed log record, no parent. 4226 * Test that the parent's handler is notified for a new log record when 4277 // set the record off 4284 * Test that the ancestor's handler is notified for a new log record whe 4675 log(LogRecord record) argument 4696 publish(LogRecord record) argument 4715 publish(LogRecord record) argument 4776 isLoggable(LogRecord record) argument 4787 isLoggable(LogRecord record) argument [all...] |
H A D | LogManagerTest.java | 1445 public void publish(LogRecord record) { argument
|