From 0614bef49b641f27d4420ad07b048fd4ccb631e7 Mon Sep 17 00:00:00 2001 From: Alejandro Alcalde Date: Mon, 7 Nov 2016 10:21:31 +0100 Subject: [PATCH] Added log and style, closes #2 --- src/main/resources/logback.xml | 29 +++++++++++++++++++++++++++++ src/main/scala/Main.scala | 24 ++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 src/main/resources/logback.xml create mode 100644 src/main/scala/Main.scala diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml new file mode 100644 index 0000000..a47c061 --- /dev/null +++ b/src/main/resources/logback.xml @@ -0,0 +1,29 @@ + + + + + true + + + %d{HH:mm:ss}: %highlight(%-5level) - %cyan(%c{1}) - %msg %n + + + + + + + \ No newline at end of file diff --git a/src/main/scala/Main.scala b/src/main/scala/Main.scala new file mode 100644 index 0000000..b46b9d3 --- /dev/null +++ b/src/main/scala/Main.scala @@ -0,0 +1,24 @@ +/* + * Copyright 2016 Alejandro Alcalde + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * Created by Alejandro Alcalde on 11/7/16. + */ +object Main extends App { + val logger = org.log4s.getLogger + + logger.info("Starting app") +}