From 5b27661c2df07f013fb4d152092b043a679baa1b Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Mon, 11 Mar 2019 20:54:56 +0400 Subject: [PATCH] Fixed logger --- .idea/artifacts/Kademlia_Bootstrap_Node_main_jar.xml | 9 --------- build.gradle | 2 +- .../java/io/github/chronosx88/dhtBootstrap/Main.java | 1 + 3 files changed, 2 insertions(+), 10 deletions(-) delete mode 100644 .idea/artifacts/Kademlia_Bootstrap_Node_main_jar.xml diff --git a/.idea/artifacts/Kademlia_Bootstrap_Node_main_jar.xml b/.idea/artifacts/Kademlia_Bootstrap_Node_main_jar.xml deleted file mode 100644 index 542932f..0000000 --- a/.idea/artifacts/Kademlia_Bootstrap_Node_main_jar.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - $PROJECT_DIR$/out/artifacts/Kademlia_Bootstrap_Node_main_jar - - - - - - \ No newline at end of file diff --git a/build.gradle b/build.gradle index d981c38..5826935 100644 --- a/build.gradle +++ b/build.gradle @@ -14,8 +14,8 @@ repositories { } dependencies { - implementation 'com.google.code.gson:gson:2.8.5' implementation 'net.tomp2p:tomp2p-all:5.0-Beta8' + implementation 'org.slf4j:slf4j-log4j12:+' } jar { diff --git a/src/main/java/io/github/chronosx88/dhtBootstrap/Main.java b/src/main/java/io/github/chronosx88/dhtBootstrap/Main.java index 44a8878..212be40 100644 --- a/src/main/java/io/github/chronosx88/dhtBootstrap/Main.java +++ b/src/main/java/io/github/chronosx88/dhtBootstrap/Main.java @@ -19,6 +19,7 @@ public class Main { public static void main(String[] args) { props = new Properties(); + org.apache.log4j.BasicConfigurator.configure(); File dataDir = new File(DATA_DIR_PATH); File config = new File(DATA_DIR_PATH + "config.properties"); try {