Log4j how to add an empty line

Possible duplicate:
Log4J prints an empty line to the log file

In java, I can use System.out.println()to print an empty string.

And now I want to know how to write an empty string in log4j.

Is there any method named logger.appendEmptyLine()or in any way that can do this?

+1
source share
1 answer
logger.debug("\n");

or maybe

logger.debug("");
0
source

All Articles