log with format functions