andybalaam / rabbit-escape

Android and PC game inspired by Lemmings and Pingus
http://artificialworlds.net/rabbit-escape
GNU General Public License v2.0
76 stars 47 forks source link

Enhancement: logcat for swing #376

Open colonelfazackerley opened 8 years ago

colonelfazackerley commented 8 years ago

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?

andybalaam commented 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.

colonelfazackerley commented 8 years ago

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(".

andybalaam commented 8 years ago

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.)