• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.testng.log;
2 
3 import java.util.logging.LogRecord;
4 import java.util.logging.SimpleFormatter;
5 
6 
7 /**
8  * This class implements a simple TextFormatter because the brainded
9  * default formatter of java.util.logging outputs everything on two
10  * lines and it's ugly as butt.
11  *
12  * @author Cedric Beust, May 2, 2004
13  *
14  */
15 public class TextFormatter extends SimpleFormatter {
16   @Override
format(LogRecord record)17   public synchronized String format(LogRecord record) {
18     StringBuffer result = new StringBuffer();
19 
20     result.append(record.getMessage()).append("\n");
21 
22     return result.toString();
23   }
24 
25 }
26