Reputation: 237
I have this code in visual studio on my Xamarin android Project:
Console.WriteLine(string.Join("\n", barcodes));
barcodes is a List and I logically want this output:
5099924337427
4053804309851
and I get this:
5099924337427
08-24 13:44:24.883 I/mono-stdout(21154): 5099924337427
4053804309851
08-24 13:44:24.884 I/mono-stdout(21154): 4053804309851
Everytime I write output the messages is doubled. Is there a Way to get rid of the mono-stdout line?
Upvotes: 1
Views: 461
Reputation: 321
EDITED : Alright after some tests :
Android.Util.Log.Debug print the message with a time header, a custom header and your message
ex > 01-01 04:44:10.379 D/[Dashboard][INFO] ( 3291): Hello!
Trace.WriteLine print the message with a quite smaller header, a custom header, and your message.
ex > [0:] [Dashboard][INFO] : Hello!
On above examples "[Dashboard][INFO]" is my custom header, "Hello!" is my message. If you do not want any custom header, just use String.Empty.
Test out and pick your favorite !
Upvotes: 1