Skip to content

Instantly share code, notes, and snippets.

@up1
Last active August 29, 2015 14:23
Show Gist options
  • Save up1/267369e837c0c33605be to your computer and use it in GitHub Desktop.
Save up1/267369e837c0c33605be to your computer and use it in GitHub Desktop.
Logging application ?
Log.info("Start process");
try {
if(ennableLogging()) {
Log.info("Start doSomething");
}
doSomething();
if(ennableLogging()) {
Log.info("Finish doSomething");
}
} catch(Exception e) {
Log.error("Error")
}
Log.info("Finish process");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment