Commit 2c6c84d0 authored by Dr. Martin Goik's avatar Dr. Martin Goik

quickstart archetype having

parent 518678e0
......@@ -20,6 +20,12 @@
package $package;
import org.apache.log4j.Logger;
* Hello world!
public class App
public static void main( String[] args )
public class App {
private static Logger log = Logger.getLogger(App.class);
public static void main( String[] args ) {
System.out.println( "Hello World!" );
log.debug("You may want to configure file");
log.debug("in folder resources to suit your needs.");
#Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=DEBUG, A1
# A1 is set to be a ConsoleAppender.
# A1 uses PatternLayout comforting Eclipse's debugger.
log4j.appender.A1.layout.ConversionPattern=%p: %m at %c.%M(%C{1}.java:%L)%n
# Specific log level per-class/package rules
......@@ -32,7 +32,6 @@
......@@ -7,7 +7,7 @@ import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Collection;
import java.util.Set;
import org.apache.log4j.Logger;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment