Implemented a TraceLogger for output to Trace