Exemplo n.º 1
0
        private void Trace(TraceLevel level, Guid hostInstanceId, FunctionDescriptor descriptor, Guid functionId, string message, string source, Exception exception = null)
        {
            TraceEvent traceEvent = new TraceEvent(level, message, source, exception);

            traceEvent.AddFunctionInstanceDetails(hostInstanceId, descriptor, functionId);
            _trace.Trace(traceEvent);
        }
        public override void Trace(TraceEvent traceEvent)
        {
            if (traceEvent == null)
            {
                throw new ArgumentNullException("traceEvent");
            }

            traceEvent.AddFunctionInstanceDetails(_hostInstanceId, _instance.FunctionDescriptor, _instance.Id);

            _innerWriter.Trace(traceEvent);
        }