@Test public void testToString_b31405251() { LogData data = FakeLogData.withPrintfStyle("Answer=%d", 42); String toString = SimpleLogRecord.create(data).toString(); assertThat(toString).contains(" message: Answer=42"); assertThat(toString).contains(" arguments: <none>"); assertThat(toString).contains(" original message: Answer=%d"); data = FakeLogData.of("Literal String"); toString = SimpleLogRecord.create(data).toString(); assertThat(toString).contains(" message: Literal String"); assertThat(toString).contains(" arguments: <none>"); assertThat(toString).contains(" original message: Literal String"); }
public static SimpleLogRecord create(LogData data) { return new SimpleLogRecord(data); }
SimpleLogRecord extends AbstractLogRecord implements SimpleLogHandler { public static SimpleLogRecord create(LogData data) { return new SimpleLogRecord(data); } }
SimpleLogRecord extends AbstractLogRecord implements SimpleLogHandler { public static SimpleLogRecord create(LogData data) { return new SimpleLogRecord(data); } private  SimpleLogRecord(LogData data); private  SimpleLogRecord(RuntimeException error, LogData data); }
SimpleLogRecord extends AbstractLogRecord implements SimpleLogHandler { public static SimpleLogRecord create(LogData data) { return new SimpleLogRecord(data); } private  SimpleLogRecord(LogData data); private  SimpleLogRecord(RuntimeException error, LogData data); static SimpleLogRecord create(LogData data); static SimpleLogRecord error(RuntimeException error, LogData data); @Override void handleFormattedLogMessage(Level level, String message, @NullableDecl Throwable thrown); }
SimpleLogRecord extends AbstractLogRecord implements SimpleLogHandler { public static SimpleLogRecord create(LogData data) { return new SimpleLogRecord(data); } private  SimpleLogRecord(LogData data); private  SimpleLogRecord(RuntimeException error, LogData data); static SimpleLogRecord create(LogData data); static SimpleLogRecord error(RuntimeException error, LogData data); @Override void handleFormattedLogMessage(Level level, String message, @NullableDecl Throwable thrown);  }