|
@ -53,7 +53,7 @@ namespace IPA.Logging |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// All levels defined by this filter will be sent to loggers. All others will be ignored.
|
|
|
/// All levels defined by this filter will be sent to loggers. All others will be ignored.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public static LogLevel PrintFilter { get; set; } = ModPrefs.GetBool("IPA", "PrintDebug", false, true) ? LogLevel.All : LogLevel.InfoUp; |
|
|
|
|
|
|
|
|
public static LogLevel PrintFilter { get; set; } |
|
|
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>(); |
|
@ -61,6 +61,7 @@ namespace IPA.Logging |
|
|
static StandardLogger() |
|
|
static StandardLogger() |
|
|
{ |
|
|
{ |
|
|
showSourceClass = ModPrefs.GetBool("IPA", "DebugShowCallSource", false, true); |
|
|
showSourceClass = ModPrefs.GetBool("IPA", "DebugShowCallSource", false, true); |
|
|
|
|
|
PrintFilter = ModPrefs.GetBool("IPA", "PrintDebug", false, true) ? LogLevel.All : LogLevel.InfoUp; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private StandardLogger(string mainName, string subName, params LogPrinter[] inherited) |
|
|
private StandardLogger(string mainName, string subName, params LogPrinter[] inherited) |
|
|