Created
May 23, 2011 19:38
-
-
Save karanmalhi/987400 to your computer and use it in GitHub Desktop.
File which will have a compile error because of missing log4j.jar in your classpath.
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
import org.apache.log4j.Logger; | |
/** | |
* Hello world! | |
* | |
*/ | |
public class App { | |
private static Logger log = Logger.getLogger(App.class); | |
@Override | |
public String toString() { | |
// TODO Auto-generated method stub | |
return super.toString(); | |
} | |
public static void main(String[] args) { | |
System.out.println("Hello World!"); | |
log.info("Printed Hello World"); | |
log.debug("Debug Printed Hello World"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment