This is similar to this bash file related question .
We created a log that is displayed on the console while we test TestNG:
private Log log = LogFactory.getLog(xyz.class);
Later, during the tests, the journal is filled with details to tell us exactly what is being done:
log.info("Setting browser...");
this.browser = browser;
log.info("Completed.");
Now it prints, as you would expect:
Setting browser...
Completed.
I would like to print this listing on the same line:
Setting browser...
and a few milliseconds later:
Setting browser...Completed.
Is this possible with LogFactory?
source
share