Skip to content

Instantly share code, notes, and snippets.

@karanmalhi
Created May 23, 2011 19:38
Show Gist options
  • Save karanmalhi/987400 to your computer and use it in GitHub Desktop.
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.
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