Added function vAddToTraceLog