When using
log.trace("with name {}, duration {}, repetitions {}", name, duration, repetitions);
SLF4J complains as follows
[javac] sourcefile.java:105: error: incompatible types: String cannot be converted to Marker
[javac] log.trace("with name {}, duration {}, repetitions {}",
[javac] ^
[javac] Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
[javac] 1 error
Using
log.trace("with name {}, duration {}, repetitions {}",
new Object[]{name, duration, repetitions});
solves the problem, yet seems kludgey. (Especially since the API allows varargs).
Going by this answer seems to say that upgrading to SLF4J 1.7 would solve the problem, yet the android-slf4j is at 1.6.1.
Is there a way to use the varargs constructor in SLF4J for Android? Is there an alternative?