| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| JavaUtilTaskLogger |
|
| 1.0;1 |
| 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 | 128 | public class JavaUtilTaskLogger implements TaskLogger { |
| 12 | 128 | 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 | 234084 | LOGGER.fine(text); |
| 22 | 234084 | } |
| 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 | 0 | LOGGER.severe(arg); |
| 32 | 0 | } |
| 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 | 1269 | LOGGER.info(arg); |
| 42 | 1269 | } |
| 43 | } |