| 1 | package net.digitaltsunami.tmeter.record; |
| 2 | |
| 3 | import net.digitaltsunami.tmeter.TimerLogType; |
| 4 | |
| 5 | /** |
| 6 | * Record all timer output to console (stdout). |
| 7 | * @author dhagberg |
| 8 | * |
| 9 | */ |
| 10 | public class ConsoleTimeRecorder extends FileTimeRecorder { |
| 11 | |
| 12 | /** |
| 13 | * Create a recorder that will log to console using the default log type of {@link TimerLogType#TEXT}. |
| 14 | */ |
| 15 | public ConsoleTimeRecorder() { |
| 16 | this(TimerLogType.TEXT); |
| 17 | } |
| 18 | |
| 19 | /** |
| 20 | * Create a recorder that will log to console using the provided log type. |
| 21 | */ |
| 22 | public ConsoleTimeRecorder(TimerLogType logType) { |
| 23 | super(System.out, logType); |
| 24 | } |
| 25 | |
| 26 | } |