Logs also go to console

This commit is contained in:
Maddy Thorson 2021-02-02 18:08:39 -08:00
parent 621b044748
commit e359824c4d

View File

@ -113,6 +113,7 @@ namespace Strawberry
static public void Log() static public void Log()
{ {
Debug.WriteLine("***"); Debug.WriteLine("***");
System.Console.WriteLine("***");
} }
[Inline] [Inline]
@ -120,7 +121,9 @@ namespace Strawberry
{ {
String string = scope String(); String string = scope String();
v.ToString(string); v.ToString(string);
Debug.WriteLine(string); Debug.WriteLine(string);
System.Console.WriteLine(string);
} }
[Inline] [Inline]
@ -128,21 +131,27 @@ namespace Strawberry
{ {
String string = scope String(); String string = scope String();
del(string); del(string);
Debug.WriteLine(string); Debug.WriteLine(string);
System.Console.WriteLine(string);
} }
[Inline] [Inline]
static public void Log(StringView str, params Object[] args) static public void Log(StringView str, params Object[] args)
{ {
let string = StringArgs(scope String(str), params args); let string = StringArgs(scope String(str), params args);
Debug.WriteLine(string); Debug.WriteLine(string);
System.Console.WriteLine(string);
} }
[Inline] [Inline]
static public void Log(char8* str, int len) static public void Log(char8* str, int len)
{ {
String s = scope String(str, len); String s = scope String(str, len);
Debug.WriteLine(s); Debug.WriteLine(s);
System.Console.WriteLine(s);
} }
} }
} }