Skip to content

Commit

Permalink
logging to logs folder
Browse files Browse the repository at this point in the history
  • Loading branch information
gitorko committed Feb 19, 2016
1 parent 4f6c26f commit 8a0e89c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>

<property name="LOG_PATH" value="." />
<property name="LOG_PATH" value="logs" />
<property name="LOG_FILE" value="excord.log" />

<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
Expand All @@ -11,7 +11,7 @@
</appender>

<appender name="ROLLING" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_FILE}</file>
<file>${LOG_PATH}/${LOG_FILE}</file>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<Pattern>
%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n
Expand Down

0 comments on commit 8a0e89c

Please sign in to comment.