Put %n at the end of your pattern layout. The full poop on this and more can be found here:
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html On Thu, 2010-09-09 at 11:19 +0200, Ben Stover wrote: > As far as I found out all output initiated by an > > log.info("...."); > > statement is written WITHOUT an EOL char. > Ok, I could manually always append an \n as in: > > log.info("....\n"); > > But this is unconvenient. Is there a way to tell Log4j to ALWAYS > AUTOMATICALLY append an EOL > on each log output? > > Ben > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > ________ The most common way people give up their power is thinking they don't have any. -- Alice Walker --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
