Skip to content

Instantly share code, notes, and snippets.

- General
[ ] The code works
[ ] The code is easy to understand
[ ] Follows coding conventions
[ ] Names are simple and if possible short
[ ] Names are spelt correctly
[ ] Names contain units where applicable
[ ] Enums are used instead of int constants where applicable
[ ] There are no usages of 'magic numbers'
[ ] All variables are in the smallest scope possible
@kshitijkumar23-zz
kshitijkumar23-zz / AppLogger.java
Created December 15, 2015 09:52
Wrapper over Log methods to have debug logs without exposing them to release builds
public class AppLogger
{
public static void d(String TAG, String text)
{
if (BuildConfig.DEBUG)
{
Log.d(TAG, text);
}
}