logger can print date time