Sample sync logger for Java