aboutsummaryrefslogtreecommitdiff
path: root/juick-demo
diff options
context:
space:
mode:
Diffstat (limited to 'juick-demo')
-rw-r--r--juick-demo/build.gradle3
-rw-r--r--juick-demo/src/main/java/com/juick/demo/Demo.java5
2 files changed, 6 insertions, 2 deletions
diff --git a/juick-demo/build.gradle b/juick-demo/build.gradle
index 16bf0c17..2807266d 100644
--- a/juick-demo/build.gradle
+++ b/juick-demo/build.gradle
@@ -15,6 +15,8 @@ repositories {
mainClassName = "com.juick.demo.Demo"
+def slf4jVersion = '1.7.21'
+
dependencies {
compile project(':juick-core')
compile 'org.apache.commons:commons-lang3:3.5'
@@ -22,5 +24,6 @@ dependencies {
compile 'mysql:mysql-connector-java:5.1.39'
compile 'ch.vorburger.mariaDB4j:mariaDB4j:2.2.2'
compile 'jline:jline:2.14.2'
+ compile 'org.slf4j:slf4j-api:${slf4jVersion}'
}
compileJava.options.encoding = 'UTF-8' \ No newline at end of file
diff --git a/juick-demo/src/main/java/com/juick/demo/Demo.java b/juick-demo/src/main/java/com/juick/demo/Demo.java
index c3d45b44..0ed18079 100644
--- a/juick-demo/src/main/java/com/juick/demo/Demo.java
+++ b/juick-demo/src/main/java/com/juick/demo/Demo.java
@@ -12,6 +12,8 @@ import com.juick.server.protocol.JuickProtocol;
import com.juick.server.protocol.ProtocolReply;
import jline.UnsupportedTerminal;
import jline.console.ConsoleReader;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.datasource.DriverManagerDataSource;
@@ -19,13 +21,12 @@ import java.io.IOException;
import java.io.PrintWriter;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
-import java.util.logging.Logger;
/**
* Created by vitalyster on 30.08.2016.
*/
public class Demo {
- private static final Logger logger = Logger.getLogger(Demo.class.getName());
+ private static final Logger logger = LoggerFactory.getLogger(Demo.class);
public static void main(String ...args) throws ManagedProcessException {
DB db = DB.newEmbeddedDB(33306);
db.start();