• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisióne086744b10e68dc664601c7dba635d5393b03d9f (tree)
Tiempo2022-07-16 20:59:08
Autoryoshy <yoshy.org.bitbucket@gz.j...>
Commiteryoshy

Log Message

[MOD] AsyncOnTargetにLogLevelを取るコンストラクタを復活

Cambiar Resumen

Diferencia incremental

--- a/Core/Log/AsyncOnLogTarget.cs
+++ b/Core/Log/AsyncOnLogTarget.cs
@@ -13,7 +13,11 @@ namespace CleanAuLait.Core.Log
1313 private LoggingRule loggingRule;
1414 private bool isClosed;
1515
16- public AsyncOnLogTarget(string name, string minLevel)
16+ public AsyncOnLogTarget(string name, string minLevel) : this(name, ParseLogLevel(minLevel, LogLevel.Info))
17+ {
18+ }
19+
20+ public AsyncOnLogTarget(string name, LogLevel minLevel)
1721 {
1822 this.BatchSize = 10;
1923 this.TaskDelayMilliseconds = 200;
@@ -27,7 +31,7 @@ namespace CleanAuLait.Core.Log
2731 // Add Target and Rule to their respective collections
2832 config.AddTarget(name, this);
2933
30- this.loggingRule = new LoggingRule("*", ParseLogLevel(minLevel, LogLevel.Info), LogLevel.Fatal, this);
34+ this.loggingRule = new LoggingRule("*", minLevel, LogLevel.Fatal, this);
3135 config.LoggingRules.Add(this.loggingRule);
3236
3337 LogManager.Configuration = config;