mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-19 17:58:17 +08:00
oss 文件操作
This commit is contained in:
parent
c8798a9c63
commit
529c9e0ef2
@ -75,10 +75,15 @@ mybatis-plus:
|
|||||||
idType: ASSIGN_ID
|
idType: ASSIGN_ID
|
||||||
minioplus:
|
minioplus:
|
||||||
# rustfs 部署地址
|
# rustfs 部署地址
|
||||||
backend: http://localhost:19000
|
backend: http://localhost:9000
|
||||||
# rustfs 存储桶
|
# rustfs 存储桶
|
||||||
bucketPrefix: ruoyih5
|
bucketPrefix: ruoyih5
|
||||||
# 授权key
|
# 授权key
|
||||||
key: NvcaRhUKFy3fuQpxs7S9
|
key: admin
|
||||||
# 密钥
|
# 密钥
|
||||||
secret: EmyxRXpZba42370A5Oj9YDqUPLCdMiK6WVkSsgoh
|
secret: admin123
|
||||||
|
|
||||||
|
|
||||||
|
# 日志配置
|
||||||
|
logging:
|
||||||
|
config: classpath:logback-plus.xml
|
||||||
|
|||||||
34
ruoyi-site/ruoyi-h5/src/main/resources/logback-plus.xml
Normal file
34
ruoyi-site/ruoyi-h5/src/main/resources/logback-plus.xml
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<configuration debug="false" scan="true" scanPeriod="1 seconds">
|
||||||
|
|
||||||
|
<contextName>logback</contextName>
|
||||||
|
<property name="log.path" value="./logs/ruoyi-monitor-admin"/>
|
||||||
|
<property name="console.log.pattern"
|
||||||
|
value="%red(%d{yyyy-MM-dd HH:mm:ss}) %green([%thread]) %highlight(%-5level) %boldMagenta(%logger{36}) %line - %msg%n"/>
|
||||||
|
<property name="log.pattern" value="%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} %line - %msg%n"/>
|
||||||
|
|
||||||
|
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||||
|
<encoder>
|
||||||
|
<pattern>${console.log.pattern}</pattern>
|
||||||
|
<charset>utf-8</charset>
|
||||||
|
</encoder>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||||
|
<file>${log.path}.log</file>
|
||||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||||
|
<fileNamePattern>${log.path}.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||||
|
<!-- 日志最大的历史 60天 -->
|
||||||
|
<maxHistory>60</maxHistory>
|
||||||
|
</rollingPolicy>
|
||||||
|
<encoder>
|
||||||
|
<pattern>${log.pattern}</pattern>
|
||||||
|
</encoder>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<root level="info">
|
||||||
|
<appender-ref ref="console"/>
|
||||||
|
<appender-ref ref="file"/>
|
||||||
|
</root>
|
||||||
|
|
||||||
|
</configuration>
|
||||||
Loading…
Reference in New Issue
Block a user