As per log4j tutorials, when log4j configured with the SimpleLayout. performance tests have shown log4j to log as quickly as System.out.println. Any idea how much percentage of performance gain we get when configured with the SimpleLayout instead of System.out.println?
There's no *gain* using Log4J, if anything, it will be slower, because of the additional method call, and the flag check. (It could also depend on the appender, I suppose.) Obviously this is not a big performance loss, and any trivial loss of performance is offset by the huge gains in flexibility.
Roses are red, violets are blue. Some poems rhyme and some don't. And some poems are a tiny ad.