Revisión | e086744b10e68dc664601c7dba635d5393b03d9f (tree) |
---|---|
Tiempo | 2022-07-16 20:59:08 |
Autor | yoshy <yoshy.org.bitbucket@gz.j...> |
Commiter | yoshy |
[MOD] AsyncOnTargetにLogLevelを取るコンストラクタを復活
@@ -13,7 +13,11 @@ namespace CleanAuLait.Core.Log | ||
13 | 13 | private LoggingRule loggingRule; |
14 | 14 | private bool isClosed; |
15 | 15 | |
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) | |
17 | 21 | { |
18 | 22 | this.BatchSize = 10; |
19 | 23 | this.TaskDelayMilliseconds = 200; |
@@ -27,7 +31,7 @@ namespace CleanAuLait.Core.Log | ||
27 | 31 | // Add Target and Rule to their respective collections |
28 | 32 | config.AddTarget(name, this); |
29 | 33 | |
30 | - this.loggingRule = new LoggingRule("*", ParseLogLevel(minLevel, LogLevel.Info), LogLevel.Fatal, this); | |
34 | + this.loggingRule = new LoggingRule("*", minLevel, LogLevel.Fatal, this); | |
31 | 35 | config.LoggingRules.Add(this.loggingRule); |
32 | 36 | |
33 | 37 | LogManager.Configuration = config; |