Open colonelfazackerley opened 8 years ago
What do you like about it? This is a reasonable idea but as ever I have opinions about how to do it.
Can leave in the source code for debugging, but have it stripped at compile time or ignored at runtime. I also prefer typing "Log.d(" to "System.out.println(".
How about log.d(
? I want the logger to be passed as an argument, not be global. (This makes testing easier, and prevents global state.)
I quite like Log.d() in android, but I want to use the same in swing. How about a Util.Log class for swing that behaves like android?