public LogEntries withArgType(Class<?> argClass) { return where(e -> e.getArgs().stream().filter(argClass::isInstance).findFirst().isPresent()); }
public LogEntries withArg(Object arg) { return where(e -> e.getArgs().contains(arg)); }
public LogEntries withArg() { return where(e -> ! e.getArgs().isEmpty()); }
@Override public void log(int level, String tag, String format, int argc, Object[] argv, Throwable throwable, String entrypoint) { final long timestamp = System.currentTimeMillis(); final Object[] args = SafeFormat.copyArgs(argc, argv); final String message = SafeFormat.format(format, argc, argv); final LogEntry entry = new LogEntry(timestamp, level, tag, format, args, message, throwable, entrypoint); entries.add(entry); }