示例#1
0
        private void OnTraceReceived(TraceMessageEventArgs e)
        {
            if (!Enabled)
                return;

            TraceMessage message = e.TraceMessage;

            if (!TraceLevel.HasValue && message.Type < Tracer.TraceLevel)
                return;

            if (TraceLevel.HasValue && message.Type < TraceLevel)
                return;

            OnTraceReceived(message);
        }
示例#2
0
        private void OnTraceReceived(TraceMessageEventArgs e)
        {
            if (!Enabled)
            {
                return;
            }

            TraceMessage message = e.TraceMessage;

            if (!TraceLevel.HasValue && message.Type < Tracer.TraceLevel)
            {
                return;
            }

            if (TraceLevel.HasValue && message.Type < TraceLevel)
            {
                return;
            }

            OnTraceReceived(message);
        }