Skip to content

Commit 01e2b92

Browse files
authored
Change Debug.WriteLine to Console.WriteLine (#10)
1 parent 0456faf commit 01e2b92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nanoFramework.Logging/DebugLogger.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ public void Log(LogLevel logLevel, EventId eventId, string state, Exception exce
5252
msg = (string)format.Invoke(null, new object[] { LoggerName, logLevel, eventId, state, exception });
5353
}
5454

55-
System.Diagnostics.Debug.WriteLine(msg);
55+
// need to use Console.WriteLine to have this working on both Debug and Release flavours
56+
Console.WriteLine(msg);
5657
}
5758
}
5859
}

0 commit comments

Comments
 (0)