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
- Score
- Cricket
Popular
- Allama Iqbal – Sele... 42k views
- Harappan Culture (Indus V... 26.5k views
- Allama Iqbal – Sele... 20.6k views
- Bhagalpur to Singapore 17.3k views
- Islamic Banking? Whats th... 16.5k views
- Beach Trek Across Arabian... 14.8k views
- Sach hai, Vipatti jab aat... 12.4k views
- I Protest 10.4k views
- O ye who don’t beli... 10k views
- Thread unsafe Format in J... 6.5k views
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