|
@ -52,15 +52,13 @@ 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; } = LogLevel.InfoUp; |
|
|
|
|
|
|
|
|
public static LogLevel PrintFilter { get; set; } = ModPrefs.GetBool("IPA", "PrintDebug", false, true) ? LogLevel.All : LogLevel.InfoUp; |
|
|
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() |
|
|
{ |
|
|
{ |
|
|
if (ModPrefs.GetBool("IPA", "PrintDebug", false, true)) |
|
|
|
|
|
PrintFilter = LogLevel.All; |
|
|
|
|
|
showSourceClass = ModPrefs.GetBool("IPA", "DebugShowCallSource", false, true); |
|
|
showSourceClass = ModPrefs.GetBool("IPA", "DebugShowCallSource", false, true); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|