From 8a0e89cd90b816d56eeece3a7572eb5cd0bf3101 Mon Sep 17 00:00:00 2001 From: Arjun Surendra Date: Thu, 18 Feb 2016 22:32:36 -0800 Subject: [PATCH] logging to logs folder --- src/main/resources/application.properties | 2 +- src/main/resources/logback.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index abd1b07..d870290 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -12,7 +12,7 @@ spring.freemarker.prefer-file-system-access=true server.tomcat.accesslog.enabled=true server.tomcat.accesslog.pattern=common -server.tomcat.basedir=. +server.tomcat.basedir=logs server.tomcat.accesslog.directory=. #spring.jpa.hibernate.ddl-auto=create diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index b2450ee..4183003 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -1,7 +1,7 @@ - + @@ -11,7 +11,7 @@ - ${LOG_FILE} + ${LOG_PATH}/${LOG_FILE} %d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n