Browse Source

Added some notes to StatnardLogger

4.0.0-beta
Anairkoen Schno 5 years ago
parent
commit
d829a2fc50
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      IPA.Loader/Logging/StandardLogger.cs

+ 2
- 2
IPA.Loader/Logging/StandardLogger.cs View File

@ -269,7 +269,7 @@ namespace IPA.Logging
var started = new HashSet<LogPrinter>(); var started = new HashSet<LogPrinter>();
while (logQueue.TryTake(out var msg, Timeout.Infinite)) while (logQueue.TryTake(out var msg, Timeout.Infinite))
{ {
StdoutInterceptor.Intercept();
StdoutInterceptor.Intercept(); // only runs once, after the first message is queued
do do
{ {
var logger = msg.Logger; var logger = msg.Logger;
@ -309,7 +309,7 @@ namespace IPA.Logging
if (debugConfig != null && debugConfig.HideMessagesForPerformance if (debugConfig != null && debugConfig.HideMessagesForPerformance
&& logQueue.Count > debugConfig.HideLogThreshold) && logQueue.Count > debugConfig.HideLogThreshold)
{ // spam filtering (if queue has more tha 512 elements)
{ // spam filtering (if queue has more than HideLogThreshold elements)
logWaitEvent.Reset(); // pause incoming log requests logWaitEvent.Reset(); // pause incoming log requests
// clear loggers for this instance, to print the message to all affected logs // clear loggers for this instance, to print the message to all affected logs


Loading…
Cancel
Save