Make waiting confirmation message output via logger
This commit is contained in:
parent
99c1bb4d6a
commit
0aa368d457
1 changed files with 3 additions and 1 deletions
|
@ -25,6 +25,8 @@ import java.time.format.FormatStyle;
|
||||||
import java.time.temporal.ChronoUnit;
|
import java.time.temporal.ChronoUnit;
|
||||||
import java.util.TimeZone;
|
import java.util.TimeZone;
|
||||||
|
|
||||||
|
import static java.lang.System.Logger.Level;
|
||||||
|
|
||||||
public final class Sleep {
|
public final class Sleep {
|
||||||
public static void waitUntilTimeStamp(ZonedDateTime timestamp) {
|
public static void waitUntilTimeStamp(ZonedDateTime timestamp) {
|
||||||
try {
|
try {
|
||||||
|
@ -43,6 +45,6 @@ public final class Sleep {
|
||||||
};
|
};
|
||||||
|
|
||||||
final String msgWithData = msg.formatted(formattedTimeStamp);
|
final String msgWithData = msg.formatted(formattedTimeStamp);
|
||||||
System.err.println(msgWithData);
|
System.getLogger("sleep").log(Level.INFO, msgWithData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue