Skip to content

Commit d8ee5a3

Browse files
Fix logging
1 parent 370c983 commit d8ee5a3

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

bot/src/main/resources/log4j2.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<Configuration status="WARN" shutdownHook="disable">
2+
<Configuration status="CONFIG" shutdownHook="disable">
33
<Appenders>
44
<!-- Console logger for debugging (prints stacktrace) -->
55
<Console name="ConsoleDebug" target="SYSTEM_OUT">
66
<PatternLayout
7-
pattern="%highlight{[%d{HH:mm:ss]}[%p{length=3}][%c] %m%n}{FATAL=black, ERROR=red, WARN=yellow, INFO=green, DEBUG=blue, TRACE=white}"
7+
pattern="%highlight{[%d{HH:mm:ss]}[%p{length=3}][%c] %m%n}{FATAL=bg_red, ERROR=red, WARN=yellow, INFO=green, DEBUG=blue, TRACE=white}"
88
disableAnsi="false"/>
99
</Console>
1010

dev.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ COPY docker/resources/docker-entrypoint.sh .
2929

3030
EXPOSE 8080
3131

32+
COPY bot/src/main/resources/log4j2.xml config/log4j2.xml
33+
RUN touch config/config.yml
34+
3235
HEALTHCHECK CMD curl --fail http://localhost:8080/swagger-ui || exit 1
3336

3437
ENTRYPOINT ["bash", "docker-entrypoint.sh"]

dev.compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
context: .
55
dockerfile: dev.Dockerfile
66
volumes:
7-
- ./data/bot/config:/app/config
7+
- ./data/bot/config/config.yml:/app/config/config.yml
88
- ./data/bot/plugins:/app/plugins
99
- ./data/bot/servers:/app/servers
1010
- ./data/bot/template:/app/template

0 commit comments

Comments
 (0)