diff options
author | Alexander Alexeev | 2016-11-10 04:50:07 +0700 |
---|---|---|
committer | Vitaly Takmazov | 2016-11-10 21:41:14 +0300 |
commit | 09221ab5695e99b2df1130ea923c39625ec85429 (patch) | |
tree | 58c775188d25239a1e32a83f8007e5f1679d49ee /juick-demo | |
parent | 705d4f87c97dfa20eb6daa88b93ff124fa401b92 (diff) |
using slf4j + logback for logging
Diffstat (limited to 'juick-demo')
-rw-r--r-- | juick-demo/build.gradle | 3 | ||||
-rw-r--r-- | juick-demo/src/main/java/com/juick/demo/Demo.java | 5 |
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(); |