make task logging more efficient.