|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<configuration scan="true" scanPeriod="60 seconds" debug="false">
|
|
|
|
|
<!-- 日志存放路径 -->
|
|
|
|
|
<property name="log.path" value="logs/ruoyi-monitor" />
|
|
|
|
|
<property name="log.path" value="logs/${project.artifactId}" />
|
|
|
|
|
<!-- 日志输出格式 -->
|
|
|
|
|
<property name="console.log.pattern"
|
|
|
|
|
value="%red(%d{yyyy-MM-dd HH:mm:ss}) %green([%thread]) %highlight(%-5level) %boldMagenta(%logger{36}%n) - %msg%n"/>
|
|
|
|
@ -99,17 +99,9 @@
|
|
|
|
|
<appender-ref ref="file_error"/>
|
|
|
|
|
</appender>
|
|
|
|
|
|
|
|
|
|
<!-- 系统模块日志级别控制 -->
|
|
|
|
|
<logger name="com.ruoyi" level="info" />
|
|
|
|
|
<!-- Spring日志级别控制 -->
|
|
|
|
|
<logger name="org.springframework" level="warn" />
|
|
|
|
|
|
|
|
|
|
<root level="info">
|
|
|
|
|
<appender-ref ref="console" />
|
|
|
|
|
</root>
|
|
|
|
|
|
|
|
|
|
<!--系统操作日志-->
|
|
|
|
|
<root level="info">
|
|
|
|
|
<appender-ref ref="console" />
|
|
|
|
|
<appender-ref ref="async_info"/>
|
|
|
|
|
<appender-ref ref="async_error"/>
|
|
|
|
|
<appender-ref ref="file_console" />
|
|
|
|
|