This commit is contained in:
Administrator
2024-05-12 23:32:25 +08:00
parent a6543a328f
commit e6eb9267e0
2 changed files with 5 additions and 6 deletions

View File

@@ -47,6 +47,8 @@ services:
REDIS_HOST: redis
NACOS_HOST: nacos
restart: on-failure
volumes:
- /tmp/logfile.log:/app/logfile.log
networks:
- mynetwork
ports:

View File

@@ -1,11 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="INFO">
<Appenders>
<!-- 控制台输出器 -->
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</Console>
</Appenders>
<File name="File" fileName="/app/logfile.log">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</File>
<Loggers>
<!-- 根日志记录器 -->
<Root level="info">