blob: 493882764ffc75320add44f0871df9e742a19161 [file] [log] [blame]
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) {
StringBuffer result = new StringBuffer();
result.append(record.getMessage()).append("\n");
return result.toString();
}
}