All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testng.log.TextFormatter Maven / Gradle / Ivy

There is a newer version: 7.10.2
Show newest version
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