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
Testing framework for Java
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();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy