diff --git a/build.gradle b/build.gradle index 60b4937..6d7c91a 100644 --- a/build.gradle +++ b/build.gradle @@ -92,8 +92,9 @@ dependencies { implementation "org.quartz-scheduler:quartz:2.3.2" implementation "org.slf4j:slf4j-api:2.0.7" - - runtimeOnly "org.slf4j:slf4j-simple:2.0.7" + runtimeOnly "ch.qos.logback:logback-core:1.3.8" + runtimeOnly "ch.qos.logback:logback-classic:1.3.8" + //runtimeOnly "org.slf4j:slf4j-simple:2.0.7" implementation "org.apache.ws.commons.axiom:axiom:1.2.22" implementation "org.apache.ws.commons.axiom:axiom-impl:1.2.22" diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml new file mode 100644 index 0000000..96a3c98 --- /dev/null +++ b/src/main/resources/logback.xml @@ -0,0 +1,34 @@ + + + + + %-5level %logger{36} - %msg%n + + + + ../logs/XServices.log + + + XServices-%d{yyyy-MM-dd}.%i.log + + 100MB + 60 + 4GB + + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index 449732e..79bec8b 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -163,4 +163,14 @@ --> + + ViewStatusMessages + ch.qos.logback.classic.ViewStatusMessagesServlet + + + + ViewStatusMessages + /logs + + \ No newline at end of file