I am thinking off migrating a java 1.4.2 project from log4j to slf4j. It is the advantage of parameterised logging and the code clarity (no need if log.isdebug..) That is drawing me to such considerations.
Are there performance overheads of converting to slf4j?
Last time I checked if I could use logback, it has a requirement on the jdk which mandates it to be att least 1.5 which is why I am considering slf4j and log4j.
No, you should get a performance advantage from slf4j if anything, because (if you use parameterized messages) then slf4j defers turning its parameters to strings until it has checked that the message won’t be filtered out by log level: