View Javadoc

1   package net.sf.statsvn.util;
2   
3   import java.io.PrintStream;
4   
5   /**
6    * Basic implementation to System.out.
7    * 
8    * @author Benoit Xhenseval
9    * @version $Revision: 187 $
10   */
11  public class ConsoleTaskLogger implements TaskLogger {
12  	private static final PrintStream STREAM = System.out;
13  
14  	/**
15  	 * log text to the System.out.
16  	 * 
17  	 * @param text
18  	 *            the text to log.
19  	 */
20  	public final void log(final String text) {
21  		STREAM.println(text);
22  	}
23  
24  	public void error(final String arg) {
25  		log(arg);
26  	}
27  
28  	public void info(final String arg) {
29  		log(arg);
30  	}
31  }