hayesmaker / doomsdayconsole

originally code.google.com/p/doomsdayconsole
0 stars 0 forks source link

DConsole.print shouldn't error on odd data types #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In my opinion, the first argument should take * and convert it to a string 
using ""+argument, so that you get "null" for null and things like that 
automatically. Of course special types could be checked for to apply special 
text formats and fancy stuff as well (I want a + next to [object Object] to 
explore the object tree, but that's for another issue :D).

Original issue reported on code.google.com by mlunar on 4 Aug 2011 at 9:08

GoogleCodeExporter commented 8 years ago
I'd not like to do string concatenations and toStrings where I can avoid them. 
I'd much prefer you to consciously toString objects you want printed.

Use a logging framework like SLF4AS or such to get the behavior you want. 
print() is explicitly for outputting _text_. 

Original comment by AndreasVonSpace@gmail.com on 17 Aug 2011 at 9:16

GoogleCodeExporter commented 8 years ago

Original comment by AndreasVonSpace@gmail.com on 10 May 2012 at 1:55