Plugins (1077)


Training and Consulting (43)



EPIC Poll

What is your favourite developer portal?

[ Results | Polls ]

Votes: 539
Comments: 0

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
subhakar_nani
Post subject: Exception during runtime  PostPosted: May 19, 2006 - 01:46 AM
Guest





Hi i had a problem while using Log4e

import org.apache.log4j.Logger;
import org.apache.log4j.*;
public class Hello {
/**
* Logger for this class
*/
private static final Logger logger = Logger.getLogger(Hello.class);

public static void main(String args[])
{
String str="Subhakar";


logger.info("- Test - str=" + str);

}
}

And this was raising an exception during runtime and the exception was raised at line
private static final Logger logger = Logger.getLogger(Hello.class);
Can any body please assist me.
 
   
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits