Over-ride trace function?

I want to modify the trace function to add it to a log, then display it in the trace output window. Is this possible?:king: