/// <summary> /// Initializes a new instance of the Log class. /// </summary> /// <param name="core">The core instance.</param> public Log(StyleCopCore core) { Param.AssertNotNull(core, "core"); object data = core.Registry.CUGetValue("Logging"); if (data != null) { try { int level = (int)data; if (level > 0) { this.logLevel = StyleCopLogLevel.High; } } catch (FormatException) { // Do nothing here since data is registry is invalid. } } if (this.logLevel != StyleCopLogLevel.None) { this.listener = new Listener(); Trace.Listeners.Add(this.listener); } }
public Log(StyleCopCore core) { object obj2 = core.Registry.CUGetValue("Logging"); if (obj2 != null) { try { int num = (int) obj2; if (num > 0) { this.logLevel = StyleCopLogLevel.High; } } catch (FormatException) { } } if (this.logLevel != StyleCopLogLevel.None) { this.listener = new Listener(); Trace.Listeners.Add(this.listener); } }
protected void Log(StyleCopLogLevel level, string output) { Param.Ignore(level, output); }
protected void Log(StyleCopLogLevel level, string output) { }