Hello guys,
I want to replace
Logger.info(className, dasd + "sadsd" );
with
Logger.info(className, dasd + "sadsd" + " [" + Thread.currentThread().getStackTrace()[1].getLineNumber() + "]");
using regex.
The dasd + "sadsd" part is random and there can be any text there, we print any log message there.
How can I do it?
There are 1000s of loggers in our code that I want to replace to add the Thread line....
Thanks