logging with new format