apply log formatting