public void Debug(string format) { DebugEntries.Add(new LogEntry { Format = format, }); }
public void Debug(string format, params object[] args) { DebugEntries.Add(new LogEntry { Format = format, Params = args, }); }
public void Debug(Exception exception, string format, params object[] args) { DebugEntries.Add(new LogEntry { Format = format, Params = args, Exception = exception }); }
/// <summary> /// Logs the Entry to the Report and DebugReport... As well as Prints the Message .. All Without Indentation /// </summary> /// <param name="message"> </param> public void WriteLine(string message = "") { message = message.Trim(); if (Verbose) { Console.WriteLine(message); } DebugEntries.Add(message); Entries.Add(message); }
/// <summary> /// Adds the Entry to the DebugReport, Prints the Message. /// </summary> /// <param name="message"> </param> /// <param name="increaseIndentation"> </param> public void Debug(string message, bool increaseIndentation = false) { if (increaseIndentation) { _indent += '\t'; } DebugEntries.Add(_indent + message); if (Verbose) { System.Diagnostics.Debug.WriteLine(_indent + message); } if (increaseIndentation) { _indent = _indent.TrimEnd('\t'); } }
/// <summary> /// Logs the Entry to the Report and DebugReport... As well as Prints the Message /// </summary> /// <param name="message"> </param> /// <param name="increaseIndentation"> </param> public void Log(string message = "", bool increaseIndentation = false) { if (increaseIndentation) { _indent += '\t'; } if (Verbose) { Console.WriteLine(_indent + message); } DebugEntries.Add(_indent + message); Entries.Add(_indent + message); if (increaseIndentation) { _indent = _indent.TrimEnd('\t'); } }
public async void Init() { DebugEntries.AddRange(GetIpAddressesOutput()); DebugEntries.AddRange(await GetGeolocOutput()); }
public void Debug(string message) => DebugEntries.Add(message);