With Log4J I can compile a string easily with params:
log.error("My string with a {} and another one {}",param1,param2);
Is there something to compile a String with the same way instead of create a StringBuilder or concat strings?
String mystr=compileString("My string with a {} and another one {}",param1,param2);