aboutsummaryrefslogtreecommitdiff
path: root/juick-demo/src/main/java/com/juick/demo
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-11-10 04:50:07 +0700
committerGravatar Vitaly Takmazov2016-11-10 21:41:14 +0300
commit09221ab5695e99b2df1130ea923c39625ec85429 (patch)
tree58c775188d25239a1e32a83f8007e5f1679d49ee /juick-demo/src/main/java/com/juick/demo
parent705d4f87c97dfa20eb6daa88b93ff124fa401b92 (diff)
using slf4j + logback for logging
Diffstat (limited to 'juick-demo/src/main/java/com/juick/demo')
-rw-r--r--juick-demo/src/main/java/com/juick/demo/Demo.java5
1 files changed, 3 insertions, 2 deletions
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();