|
@ -57,7 +57,7 @@ namespace IPA.Logging |
|
|
private List<LogPrinter> printers = new List<LogPrinter>(defaultPrinters); |
|
|
private List<LogPrinter> printers = new List<LogPrinter>(defaultPrinters); |
|
|
|
|
|
|
|
|
private Dictionary<string, StandardLogger> children = new Dictionary<string, StandardLogger>(); |
|
|
private Dictionary<string, StandardLogger> children = new Dictionary<string, StandardLogger>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static StandardLogger() |
|
|
static StandardLogger() |
|
|
{ |
|
|
{ |
|
|
showSourceClass = ModPrefs.GetBool("IPA", "DebugShowCallSource", false, true); |
|
|
showSourceClass = ModPrefs.GetBool("IPA", "DebugShowCallSource", false, true); |
|
@ -104,6 +104,15 @@ namespace IPA.Logging |
|
|
return chld; |
|
|
return chld; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Adds a log printer to the logger.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="printer">the printer to add</param>
|
|
|
|
|
|
public void AddPrinter(LogPrinter printer) |
|
|
|
|
|
{ |
|
|
|
|
|
printers.Add(printer); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Logs a specific message at a given level.
|
|
|
/// Logs a specific message at a given level.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|