|
@ -25,10 +25,7 @@ namespace IPA.Logging |
|
|
/// </remarks>
|
|
|
/// </remarks>
|
|
|
public class StandardLogger : Logger |
|
|
public class StandardLogger : Logger |
|
|
{ |
|
|
{ |
|
|
private static readonly List<LogPrinter> defaultPrinters = new() |
|
|
|
|
|
{ |
|
|
|
|
|
new GlobalLogFilePrinter() |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
private static readonly List<LogPrinter> defaultPrinters = new(); |
|
|
|
|
|
|
|
|
static StandardLogger() |
|
|
static StandardLogger() |
|
|
{ |
|
|
{ |
|
@ -115,6 +112,7 @@ namespace IPA.Logging |
|
|
|
|
|
|
|
|
private readonly Dictionary<string, StandardLogger> children = new(); |
|
|
private readonly Dictionary<string, StandardLogger> children = new(); |
|
|
|
|
|
|
|
|
|
|
|
private static bool addedFilePrinter = false; |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Configures internal debug settings based on the config passed in.
|
|
|
/// Configures internal debug settings based on the config passed in.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
@ -124,6 +122,10 @@ namespace IPA.Logging |
|
|
PrintFilter = SelfConfig.Debug_.ShowDebug_ ? LogLevel.All : LogLevel.InfoUp; |
|
|
PrintFilter = SelfConfig.Debug_.ShowDebug_ ? LogLevel.All : LogLevel.InfoUp; |
|
|
showTrace = SelfConfig.Debug_.ShowTrace_; |
|
|
showTrace = SelfConfig.Debug_.ShowTrace_; |
|
|
syncLogging = SelfConfig.Debug_.SyncLogging_; |
|
|
syncLogging = SelfConfig.Debug_.SyncLogging_; |
|
|
|
|
|
if(SelfConfig.CommandLineValues.WriteLogs && !addedFilePrinter) { |
|
|
|
|
|
addedFilePrinter = true; |
|
|
|
|
|
AddDefaultPrinter(new GZFilePrinter()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private StandardLogger(StandardLogger parent, string subName) |
|
|
private StandardLogger(StandardLogger parent, string subName) |
|
|