Skip to content

Instantly share code, notes, and snippets.

@Gopinathp
Last active December 19, 2015 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gopinathp/5932684 to your computer and use it in GitHub Desktop.
Save Gopinathp/5932684 to your computer and use it in GitHub Desktop.
Usage of GreenLogger
// To print an exception in the console in debug builds only and to skip the printing in release builds.
// Instead of e.printStacktrace() use GreenLogger.
L.print(e);
// To print a sharedpreferences file in the console in debug builds only and to skip the printing in release builds.
L.print(mPrefs);
// To print any message only in debug, use
String message = "Your debug time only verbose message";
L.v(message);
// or
L.d(message);
String anotherMessage = "something went seriously wrong. Must be printed on production build also";
// To print a message both in debug and production environments, use as below
L.e(anotherMessage)
// or
L.w(anotherMessage);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment