View Javadoc

1   package net.sf.statsvn.util;
2   
3   import java.util.logging.Logger;
4   
5   /**
6    * Basic implementation to net.sf.statcvs logger.
7    * 
8    * @author Benoit Xhenseval
9    * @version $Revision: 187 $
10   */
11  public class JavaUtilTaskLogger implements TaskLogger {
12  	private static final Logger LOGGER = Logger.getLogger("net.sf.statcvs");
13  
14  	/**
15  	 * log text to the logger.fine().
16  	 * 
17  	 * @param text
18  	 *            the text to log.
19  	 */
20  	public final void log(final String text) {
21  		LOGGER.fine(text);
22  	}
23  
24  	/**
25  	 * log text to the logger.severe().
26  	 * 
27  	 * @param text
28  	 *            the text to log.
29  	 */
30  	public void error(final String arg) {
31  		LOGGER.severe(arg);
32  	}
33  
34  	/**
35  	 * log text to the logger.info().
36  	 * 
37  	 * @param text
38  	 *            the text to log.
39  	 */
40  	public void info(final String arg) {
41  		LOGGER.info(arg);
42  	}
43  }