System.Diagnostics.TraceListener.WriteFooter C# (CSharp) Method

WriteFooter() private method

private WriteFooter ( TraceEventCache eventCache ) : void
eventCache TraceEventCache
return void
        private void WriteFooter(TraceEventCache eventCache)
        {
            if (eventCache == null)
                return;

            _indentLevel++;
            if (IsEnabled(TraceOptions.ProcessId))
                WriteLine("ProcessId=" + eventCache.ProcessId);

            if (IsEnabled(TraceOptions.ThreadId))
                WriteLine("ThreadId=" + eventCache.ThreadId);

            if (IsEnabled(TraceOptions.DateTime))
                WriteLine("DateTime=" + eventCache.DateTime.ToString("o", CultureInfo.InvariantCulture));

            if (IsEnabled(TraceOptions.Timestamp))
                WriteLine("Timestamp=" + eventCache.Timestamp);

            _indentLevel--;
        }