org.testng.log.TextFormatter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testng Show documentation
Show all versions of testng Show documentation
A testing framework for the JVM
package org.testng.log;
import java.util.logging.LogRecord;
import java.util.logging.SimpleFormatter;
/**
* This class implements a simple TextFormatter because the brainded
* default formatter of java.util.logging outputs everything on two
* lines and it's ugly as butt.
*
* @author Cedric Beust, May 2, 2004
*
*/
public class TextFormatter extends SimpleFormatter {
@Override
public synchronized String format(LogRecord record) {
return record.getMessage() + "\n";
}
}