- my webspace

- my webspace

Latest Comment

Why I must believe in GOD
Testing time is almost passed..there are many colours in lif...
27/06/12 01:43 More...
By Tarun Shekhawat

Allama Iqbal - Selective verse...
Really good work about this website was done. Keep trying mo...
07/03/10 15:04 More...
By Roderick

Allama Iqbal - Selective verse...
Great Job
You have dont a great job of collecting these... Even I had ...
25/08/09 01:01 More...
By Sikandar

O ye who don't believe !
It's like Lehman Brothers :grin
11/10/08 10:31 More...
By anurag Chaturvedi

I Protest
Thanks Sikku for the feedback. I never intend to blame, a...
29/07/08 11:06 More...
By Aminur Rashid


Lost Password?
Home arrow Java arrow Quick logger
Quick logger PDF Print E-mail
User Rating: / 2
Written by Aminur Rashid   
Saturday, 14 August 2010

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);


StumbleUponDigg This!Bookmark on Delicious

Add as favourites (458) | Quote this article on your site | Views: 2141 | E-mail

Be first to comment this article
RSS comments

Only registered users can write comments.
Please login or register.

Last Updated ( Saturday, 14 August 2010 )
< Prev   Next >
Aminur Rashid