private void Log(string message, ConsoleColor color) { if (_debugLogger != null) { _debugLogger.Log(message, color); } }
public override void Log(string message, ConsoleColor color) { if (!String.IsNullOrEmpty(message) && _logger != null) { _logger.Log(message, color); } }
public override void TraceEvent(TraceEventCache eventCache, string source, TraceEventType eventType, int id, string message) { #if VS11 _helper.BeginInvoke( #else _helper.InvokeAsync( #endif () => { ConsoleColor color; if (!_colorMap.TryGetValue(eventType, out color)) { color = ConsoleColor.White; } _console.Log(eventCache.DateTime, message, eventType, source); }); }