configure log4j

This commit is contained in:
Tienan Chen 2013-10-25 17:19:53 +08:00
parent 43127e5257
commit 17888cadcb
3 changed files with 9 additions and 7 deletions

View File

@ -62,12 +62,6 @@
<artifactId>httpunit</artifactId>
<version>1.7.2</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j</artifactId>
<version>2.0-beta7</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>

View File

@ -1,8 +1,16 @@
package org.bench4q.master;
import org.apache.log4j.Logger;
public class Main {
public static void main(String[] args) {
MasterServer masterServer = new MasterServer(8080);
masterServer.start();
initLog4j();
}
private static void initLog4j() {
Logger logger = Logger.getLogger(Main.class);
logger.info("start server!");
}
}

View File

@ -315,7 +315,7 @@ public class TestPlanService {
transaction.commit();
} catch (Exception e) {
// TODO: write it to log4j
}
}
}