Skip to content

Instantly share code, notes, and snippets.

@burntcookie90
Created September 9, 2015 00:10
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 burntcookie90/c4081bd68b959b583c84 to your computer and use it in GitHub Desktop.
Save burntcookie90/c4081bd68b959b583c84 to your computer and use it in GitHub Desktop.
final class Lumberjack {
static void log(final String tag, final String message, final LogLevel level) {
if (Reactor.getInstance().shouldLog()) {
if (Reactor.getInstance().getLogLevel().logLevelValue >= level.logLevelValue) {
if (Reactor.getInstance().getLog() != null) {
Reactor.getInstance().getLog().log(message);
}
else {
Log.d(tag, message);
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment