mirror of
https://github.com/Tribufu/TribufuDotNet
synced 2026-08-19 01:21:08 +00:00
Update log levels
This commit is contained in:
parent
c8bb2d95b5
commit
eb9e939fc8
3 changed files with 6 additions and 13 deletions
|
|
@ -41,12 +41,7 @@ namespace Tribufu.Logging
|
|||
|
||||
private static void Log(LogLevel level, string message, ConsoleColor color)
|
||||
{
|
||||
if (_level == LogLevel.Off)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (_level == LogLevel.All || level >= _level)
|
||||
if (level <= _level)
|
||||
{
|
||||
var defaultColor = Console.ForegroundColor;
|
||||
Console.ForegroundColor = color;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue