Added 'virtual' to GetLogContextFunction() in trace manager