Skip to content

Instantly share code, notes, and snippets.

@parkercoleman
Created February 10, 2015 18:44
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 parkercoleman/7af9215ac6fc7a9efac6 to your computer and use it in GitHub Desktop.
Save parkercoleman/7af9215ac6fc7a9efac6 to your computer and use it in GitHub Desktop.
void info(Object message) {
if(repository.isDisabled(Level.INFO_INT))
return;
if(Level.INFO.isGreaterOrEqual(this.getEffectiveLevel()))
forcedLog(FQCN, Level.INFO, message, null);
}
@parkercoleman
Copy link
Author

public
boolean isInfoEnabled() {
if(repository.isDisabled(Level.INFO_INT))
return false;
return Level.INFO.isGreaterOrEqual(this.getEffectiveLevel());
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment