1. A method, comprising: logging trace messages generated during execution of programming code in a trace log; deleting the logged trace messages logged during execution of a portion of the programming code from the trace log when the portion of programming code executes without an error; keeping the logged trace messages in the trace log when an error occurs during execution of the portion of the programming code; and outputting the trace log when execution of the programming code ends.