logging with format date