diff --git a/src/Swan.Lite/Logging/ConsoleLogger.cs b/src/Swan.Lite/Logging/ConsoleLogger.cs
index ef8bbc09e..7e575842c 100644
--- a/src/Swan.Lite/Logging/ConsoleLogger.cs
+++ b/src/Swan.Lite/Logging/ConsoleLogger.cs
@@ -127,7 +127,7 @@ protected ConsoleLogger()
public static ConsoleColor FatalColor { get; set; } = ConsoleColor.Red;
///
- public LogLevel LogLevel { get; set; } = Terminal.IsDebuggerAttached ? LogLevel.Trace : LogLevel.Info;
+ public LogLevel LogLevel { get; set; } = DebugLogger.IsDebuggerAttached ? LogLevel.Trace : LogLevel.Info;
///
public void Log([NotNull] LogMessageReceivedEventArgs logEvent)
diff --git a/src/Swan.Lite/Logging/DebugLogger.cs b/src/Swan.Lite/Logging/DebugLogger.cs
index 11416b7a7..65a83db02 100644
--- a/src/Swan.Lite/Logging/DebugLogger.cs
+++ b/src/Swan.Lite/Logging/DebugLogger.cs
@@ -14,9 +14,17 @@ protected DebugLogger()
{
// Empty
}
+
+ ///
+ /// Gets a value indicating whether a debugger is attached.
+ ///
+ ///
+ /// true if this instance is debugger attached; otherwise, false.
+ ///
+ public static bool IsDebuggerAttached => System.Diagnostics.Debugger.IsAttached;
///
- public LogLevel LogLevel { get; set; } = Terminal.IsDebuggerAttached ? LogLevel.Trace : LogLevel.None;
+ public LogLevel LogLevel { get; set; } = IsDebuggerAttached ? LogLevel.Trace : LogLevel.None;
internal static DebugLogger Instance { get; } = new DebugLogger();
diff --git a/src/Swan.Lite/Logging/Logger.cs b/src/Swan.Lite/Logging/Logger.cs
index 1518a01b7..d93a4deb5 100644
--- a/src/Swan.Lite/Logging/Logger.cs
+++ b/src/Swan.Lite/Logging/Logger.cs
@@ -22,7 +22,7 @@ static Logger()
if (Terminal.IsConsolePresent)
Loggers.Add(ConsoleLogger.Instance);
- if (Terminal.IsDebuggerAttached)
+ if (DebugLogger.IsDebuggerAttached)
Loggers.Add(DebugLogger.Instance);
}
diff --git a/src/Swan.Lite/Swan.Lite.csproj b/src/Swan.Lite/Swan.Lite.csproj
index 2e000a36d..0e75e1393 100644
--- a/src/Swan.Lite/Swan.Lite.csproj
+++ b/src/Swan.Lite/Swan.Lite.csproj
@@ -8,7 +8,7 @@
true
Swan.Lite
..\..\StyleCop.Analyzers.ruleset
- 2.1.0
+ 2.2.0
Unosquare
https://github.com/unosquare/swan/raw/master/swan-logo-32.png
https://github.com/unosquare/swan
diff --git a/src/Swan.Lite/Terminal.cs b/src/Swan.Lite/Terminal.cs
index ba799eeb1..949c1f3b6 100644
--- a/src/Swan.Lite/Terminal.cs
+++ b/src/Swan.Lite/Terminal.cs
@@ -142,14 +142,6 @@ public static bool IsConsolePresent
}
}
- ///
- /// Gets a value indicating whether a debugger is attached.
- ///
- ///
- /// true if this instance is debugger attached; otherwise, false.
- ///
- public static bool IsDebuggerAttached => System.Diagnostics.Debugger.IsAttached;
-
///
/// Gets the available output writers in a bitwise mask.
///