Post JDK1.5 you can create a quick logger(if you are not using apache log4j for some reason)as below:
public Logger { public static void log(String msg) { System.out.printf("%s : %s",Thread.currentThread().getStackTrace() [2],msg); } }
Related posts
Feed
- India
- World
- Live
- Cricket News
This site uses cookies. These cookies come mainly from third party library used at this site(Google/Jetpack/etc). By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here Cookie Policy
To find out more, including how to control cookies, see here Cookie Policy