Skip to content

Commit 7d4d01b

Browse files
committed
Don´t log anything on logging level None. Fixing issue #33
1 parent 67f1524 commit 7d4d01b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: ProxiFyre/Program.cs

+3
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ public void Stop()
8484
// Method to handle logging events
8585
private static void LogPrinter(object sender, LogEventArgs e)
8686
{
87+
if (_logLevel == LogLevel.None)
88+
return;
89+
8790
// Loop through each log entry and log it using NLog
8891
foreach (var entry in e.Log.Where(entry => entry != null))
8992
{

0 commit comments

Comments
 (0)