Last active
August 29, 2015 14:23
-
-
Save up1/267369e837c0c33605be to your computer and use it in GitHub Desktop.
Logging application ?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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