私信发送成功
检测到您已登录开源中国,是否 一键登录码云
Watch Star Fork

iBase4J / iBase4JJavaApache-2.0GVP

A♂圣旭 提交于   master
commit 59dbd227902003e9e1285415e2292a7435ca11a4
1 parent 32662683d5
@@ -5,7 +5,6 @@
<!-- 日志备份目录 -->
<property name="BACKUP_HOME">backup</property>
<property name="SERVER_NAME">${project.artifactId}</property>
- <property name="EVERY_FILE_SIZE">5M</property><!-- 日志切割的最小单位 -->
<property name="OUTPUT_LOG_LEVEL">DEBUG</property><!-- 日志输出级别 -->
</properties>
<appenders>
@@ -17,23 +16,15 @@
fileName="${LOG_HOME}/dev_${SERVER_NAME}.log"
filePattern="${LOG_HOME}/dev_${BACKUP_HOME}/dev_${SERVER_NAME}.%d{yyyy-MM-dd-HH}.log">
<PatternLayout pattern="%date{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %level [%C{36}.%M] - %msg%n" />
- <Policies>
- <SizeBasedTriggeringPolicy size="${EVERY_FILE_SIZE}" />
- <TimeBasedTriggeringPolicy interval="1" modulate="true" />
- </Policies>
+ <CronTriggeringPolicy schedule="0 0 * * * ?" />
<Filters>
<ThresholdFilter level="error" onMatch="DENY" onMismatch="NEUTRAL" />
<ThresholdFilter level="trace" onMatch="ACCEPT" onMismatch="DENY" />
</Filters>
<DefaultRolloverStrategy>
- <!-- 删除指定目录下7天之前的日志-->
- <Delete basePath="${LOG_HOME}/${BACKUP_HOME}" maxDepth="1">
- <IfFileName glob="*/${SERVER_NAME}*.log" />
- <IfLastModified age="7d" />
- </Delete>
- <Delete basePath="${LOG_HOME}/dev_${BACKUP_HOME}" maxDepth="1">
- <IfFileName glob="*/dev_${SERVER_NAME}*.log" />
- <IfLastModified age="7d" />
+ <Delete basePath="${LOG_HOME}" maxDepth="2">
+ <IfFileName glob="*.log" />
+ <IfLastModified age="200H" />
</Delete>
</DefaultRolloverStrategy>
</RollingFile>
@@ -42,10 +33,7 @@
fileName="${LOG_HOME}/dev_${SERVER_NAME}_error.log"
filePattern="${LOG_HOME}/dev_${BACKUP_HOME}/dev_${SERVER_NAME}_error.%d{yyyy-MM-dd-HH}.log">
<PatternLayout pattern="%d{yyyy.MM.dd HH:mm:ss.SSS} [%thread] %level [%C{36}.%M:%L] - %msg%xEx%n" />
- <Policies>
- <SizeBasedTriggeringPolicy size="${EVERY_FILE_SIZE}" />
- <TimeBasedTriggeringPolicy interval="1" modulate="true" />
- </Policies>
+ <CronTriggeringPolicy schedule="0 0 * * * ?" />
<Filters>
<ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY" />
</Filters>
@@ -55,10 +43,7 @@
fileName="${LOG_HOME}/${SERVER_NAME}.log"
filePattern="${LOG_HOME}/${BACKUP_HOME}/${SERVER_NAME}.%d{yyyy-MM-dd-HH}.log">
<PatternLayout pattern="%d{yyyy.MM.dd HH:mm:ss.SSS} [%thread] %level [%C{36}.%M:%L] - %msg%xEx%n" />
- <Policies>
- <SizeBasedTriggeringPolicy size="${EVERY_FILE_SIZE}" />
- <TimeBasedTriggeringPolicy interval="1" modulate="true" />
- </Policies>
+ <CronTriggeringPolicy schedule="0 0 * * * ?" />
</RollingRandomAccessFile>
</appenders>
 
@@ -5,7 +5,6 @@
<!-- 日志备份目录 -->
<property name="BACKUP_HOME">backup</property>
<property name="SERVER_NAME">${project.artifactId}</property>
- <property name="EVERY_FILE_SIZE">5M</property><!-- 日志切割的最小单位 -->
<property name="OUTPUT_LOG_LEVEL">DEBUG</property><!-- 日志输出级别 -->
</properties>
<appenders>
@@ -17,23 +16,15 @@
fileName="${LOG_HOME}/dev_${SERVER_NAME}.log"
filePattern="${LOG_HOME}/dev_${BACKUP_HOME}/dev_${SERVER_NAME}.%d{yyyy-MM-dd-HH}.log">
<PatternLayout pattern="%date{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %level [%C{36}.%M] - %msg%n" />
- <Policies>
- <SizeBasedTriggeringPolicy size="${EVERY_FILE_SIZE}" />
- <TimeBasedTriggeringPolicy interval="1" modulate="true" />
- </Policies>
+ <CronTriggeringPolicy schedule="0 0 * * * ?" />
<Filters>
<ThresholdFilter level="error" onMatch="DENY" onMismatch="NEUTRAL" />
<ThresholdFilter level="trace" onMatch="ACCEPT" onMismatch="DENY" />
</Filters>
<DefaultRolloverStrategy>
- <!-- 删除指定目录下7天之前的日志-->
- <Delete basePath="${LOG_HOME}/${BACKUP_HOME}" maxDepth="1">
- <IfFileName glob="*/${SERVER_NAME}*.log" />
- <IfLastModified age="7d" />
- </Delete>
- <Delete basePath="${LOG_HOME}/dev_${BACKUP_HOME}" maxDepth="1">
- <IfFileName glob="*/dev_${SERVER_NAME}*.log" />
- <IfLastModified age="7d" />
+ <Delete basePath="${LOG_HOME}" maxDepth="2">
+ <IfFileName glob="*.log" />
+ <IfLastModified age="200H" />
</Delete>
</DefaultRolloverStrategy>
</RollingFile>
@@ -42,10 +33,7 @@
fileName="${LOG_HOME}/dev_${SERVER_NAME}_error.log"
filePattern="${LOG_HOME}/dev_${BACKUP_HOME}/dev_${SERVER_NAME}_error.%d{yyyy-MM-dd-HH}.log">
<PatternLayout pattern="%d{yyyy.MM.dd HH:mm:ss.SSS} [%thread] %level [%C{36}.%M:%L] - %msg%xEx%n" />
- <Policies>
- <SizeBasedTriggeringPolicy size="${EVERY_FILE_SIZE}" />
- <TimeBasedTriggeringPolicy interval="1" modulate="true" />
- </Policies>
+ <CronTriggeringPolicy schedule="0 0 * * * ?" />
<Filters>
<ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY" />
</Filters>
@@ -55,10 +43,7 @@
fileName="${LOG_HOME}/${SERVER_NAME}.log"
filePattern="${LOG_HOME}/${BACKUP_HOME}/${SERVER_NAME}.%d{yyyy-MM-dd-HH}.log">
<PatternLayout pattern="%d{yyyy.MM.dd HH:mm:ss.SSS} [%thread] %level [%C{36}.%M:%L] - %msg%xEx%n" />
- <Policies>
- <SizeBasedTriggeringPolicy size="${EVERY_FILE_SIZE}" />
- <TimeBasedTriggeringPolicy interval="1" modulate="true" />
- </Policies>
+ <CronTriggeringPolicy schedule="0 0 * * * ?" />
</RollingRandomAccessFile>
</appenders>
 
@@ -66,12 +51,14 @@
<logger name="org.slf4j" level="INFO" />
<logger name="org.quartz" level="INFO" />
<logger name="org.redisson" level="INFO" />
+ <logger name="com.alibaba" level="WARN" />
<logger name="com.atomikos" level="WARN" />
<logger name="com.alibaba.dubbo" level="INFO" />
<logger name="org.apache.activemq" level="INFO" />
<logger name="org.springframework" level="INFO" />
<logger name="com.weibo.api.motan" level="INFO" />
<logger name="org.apache.zookeeper" level="WARN" />
+ <logger name="com.baomidou.mybatisplus" level="INFO" />
<logger name="org.springframework.web" level="${OUTPUT_LOG_LEVEL}" />
<Logger name="org.ibase4j" level="${OUTPUT_LOG_LEVEL}" additivity="false" includeLocation="true">
<appender-ref ref="Console" />
@@ -5,7 +5,6 @@
<!-- 日志备份目录 -->
<property name="BACKUP_HOME">backup</property>
<property name="SERVER_NAME">${project.artifactId}</property>
- <property name="EVERY_FILE_SIZE">5M</property><!-- 日志切割的最小单位 -->
<property name="OUTPUT_LOG_LEVEL">DEBUG</property><!-- 日志输出级别 -->
</properties>
<appenders>
@@ -17,24 +16,24 @@
fileName="${LOG_HOME}/dev_${SERVER_NAME}.log"
filePattern="${LOG_HOME}/dev_${BACKUP_HOME}/dev_${SERVER_NAME}.%d{yyyy-MM-dd-HH}.log">
<PatternLayout pattern="%date{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %level [%C{36}.%M] - %msg%n" />
- <Policies>
- <SizeBasedTriggeringPolicy size="${EVERY_FILE_SIZE}" />
- <TimeBasedTriggeringPolicy interval="1" modulate="true" />
- </Policies>
+ <CronTriggeringPolicy schedule="0 0 * * * ?" />
<Filters>
<ThresholdFilter level="error" onMatch="DENY" onMismatch="NEUTRAL" />
<ThresholdFilter level="trace" onMatch="ACCEPT" onMismatch="DENY" />
</Filters>
+ <DefaultRolloverStrategy>
+ <Delete basePath="${LOG_HOME}" maxDepth="2">
+ <IfFileName glob="*.log" />
+ <IfLastModified age="200H" />
+ </Delete>
+ </DefaultRolloverStrategy>
</RollingFile>
<!-- 只显示error级别的信息 -->
<RollingFile name="RollingFileError"
fileName="${LOG_HOME}/dev_${SERVER_NAME}_error.log"
filePattern="${LOG_HOME}/dev_${BACKUP_HOME}/dev_${SERVER_NAME}_error.%d{yyyy-MM-dd-HH}.log">
<PatternLayout pattern="%d{yyyy.MM.dd HH:mm:ss.SSS} [%thread] %level [%C{36}.%M:%L] - %msg%xEx%n" />
- <Policies>
- <SizeBasedTriggeringPolicy size="${EVERY_FILE_SIZE}" />
- <TimeBasedTriggeringPolicy interval="1" modulate="true" />
- </Policies>
+ <CronTriggeringPolicy schedule="0 0 * * * ?" />
<Filters>
<ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY" />
</Filters>
@@ -44,10 +43,7 @@
fileName="${LOG_HOME}/${SERVER_NAME}.log"
filePattern="${LOG_HOME}/${BACKUP_HOME}/${SERVER_NAME}.%d{yyyy-MM-dd-HH}.log">
<PatternLayout pattern="%d{yyyy.MM.dd HH:mm:ss.SSS} [%thread] %level [%C{36}.%M:%L] - %msg%xEx%n" />
- <Policies>
- <SizeBasedTriggeringPolicy size="${EVERY_FILE_SIZE}" />
- <TimeBasedTriggeringPolicy interval="1" modulate="true" />
- </Policies>
+ <CronTriggeringPolicy schedule="0 0 * * * ?" />
</RollingRandomAccessFile>
</appenders>
 
@@ -55,18 +51,19 @@
<logger name="org.slf4j" level="INFO" />
<logger name="org.quartz" level="INFO" />
<logger name="org.redisson" level="INFO" />
+ <logger name="com.alibaba" level="WARN" />
<logger name="com.atomikos" level="WARN" />
<logger name="com.alibaba.dubbo" level="INFO" />
<logger name="org.apache.activemq" level="INFO" />
<logger name="org.springframework" level="INFO" />
+ <logger name="com.weibo.api.motan" level="INFO" />
<logger name="org.apache.zookeeper" level="WARN" />
- <logger name="org.springframework.web" level="DEBUG" />
<logger name="com.baomidou.mybatisplus" level="INFO" />
- <logger name="org.springframework.web.servlet.DispatcherServlet" level="INFO" />
- <AsyncLogger name="org.ibase4j" level="${OUTPUT_LOG_LEVEL}" additivity="false" includeLocation="true">
+ <logger name="org.springframework.web" level="${OUTPUT_LOG_LEVEL}" />
+ <Logger name="org.ibase4j" level="${OUTPUT_LOG_LEVEL}" additivity="false" includeLocation="true">
<appender-ref ref="Console" />
<appender-ref ref="ProductLog" />
- </AsyncLogger >
+ </Logger >
<Root level="DEBUG">
<appender-ref ref="Console" />
<appender-ref ref="RollingFile" />
@@ -5,7 +5,6 @@
<!-- 日志备份目录 -->
<property name="BACKUP_HOME">backup</property>
<property name="SERVER_NAME">${project.artifactId}</property>
- <property name="EVERY_FILE_SIZE">5M</property><!-- 日志切割的最小单位 -->
<property name="OUTPUT_LOG_LEVEL">DEBUG</property><!-- 日志输出级别 -->
</properties>
<appenders>
@@ -17,23 +16,15 @@
fileName="${LOG_HOME}/dev_${SERVER_NAME}.log"
filePattern="${LOG_HOME}/dev_${BACKUP_HOME}/dev_${SERVER_NAME}.%d{yyyy-MM-dd-HH}.log">
<PatternLayout pattern="%date{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %level [%C{36}.%M] - %msg%n" />
- <Policies>
- <SizeBasedTriggeringPolicy size="${EVERY_FILE_SIZE}" />
- <TimeBasedTriggeringPolicy interval="1" modulate="true" />
- </Policies>
+ <CronTriggeringPolicy schedule="0 0 * * * ?" />
<Filters>
<ThresholdFilter level="error" onMatch="DENY" onMismatch="NEUTRAL" />
<ThresholdFilter level="trace" onMatch="ACCEPT" onMismatch="DENY" />
</Filters>
<DefaultRolloverStrategy>
- <!-- 删除指定目录下7天之前的日志-->
- <Delete basePath="${LOG_HOME}/${BACKUP_HOME}" maxDepth="1">
- <IfFileName glob="*/${SERVER_NAME}*.log" />
- <IfLastModified age="7d" />
- </Delete>
- <Delete basePath="${LOG_HOME}/dev_${BACKUP_HOME}" maxDepth="1">
- <IfFileName glob="*/dev_${SERVER_NAME}*.log" />
- <IfLastModified age="7d" />
+ <Delete basePath="${LOG_HOME}" maxDepth="2">
+ <IfFileName glob="*.log" />
+ <IfLastModified age="200H" />
</Delete>
</DefaultRolloverStrategy>
</RollingFile>
@@ -42,10 +33,7 @@
fileName="${LOG_HOME}/dev_${SERVER_NAME}_error.log"
filePattern="${LOG_HOME}/dev_${BACKUP_HOME}/dev_${SERVER_NAME}_error.%d{yyyy-MM-dd-HH}.log">
<PatternLayout pattern="%d{yyyy.MM.dd HH:mm:ss.SSS} [%thread] %level [%C{36}.%M:%L] - %msg%xEx%n" />
- <Policies>
- <SizeBasedTriggeringPolicy size="${EVERY_FILE_SIZE}" />
- <TimeBasedTriggeringPolicy interval="1" modulate="true" />
- </Policies>
+ <CronTriggeringPolicy schedule="0 0 * * * ?" />
<Filters>
<ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY" />
</Filters>
@@ -55,10 +43,7 @@
fileName="${LOG_HOME}/${SERVER_NAME}.log"
filePattern="${LOG_HOME}/${BACKUP_HOME}/${SERVER_NAME}.%d{yyyy-MM-dd-HH}.log">
<PatternLayout pattern="%d{yyyy.MM.dd HH:mm:ss.SSS} [%thread] %level [%C{36}.%M:%L] - %msg%xEx%n" />
- <Policies>
- <SizeBasedTriggeringPolicy size="${EVERY_FILE_SIZE}" />
- <TimeBasedTriggeringPolicy interval="1" modulate="true" />
- </Policies>
+ <CronTriggeringPolicy schedule="0 0 * * * ?" />
</RollingRandomAccessFile>
</appenders>
 
@@ -5,7 +5,6 @@
<!-- 日志备份目录 -->
<property name="BACKUP_HOME">backup</property>
<property name="SERVER_NAME">${project.artifactId}</property>
- <property name="EVERY_FILE_SIZE">5M</property><!-- 日志切割的最小单位 -->
<property name="OUTPUT_LOG_LEVEL">DEBUG</property><!-- 日志输出级别 -->
</properties>
<appenders>
@@ -17,23 +16,15 @@
fileName="${LOG_HOME}/dev_${SERVER_NAME}.log"
filePattern="${LOG_HOME}/dev_${BACKUP_HOME}/dev_${SERVER_NAME}.%d{yyyy-MM-dd-HH}.log">
<PatternLayout pattern="%date{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %level [%C{36}.%M] - %msg%n" />
- <Policies>
- <SizeBasedTriggeringPolicy size="${EVERY_FILE_SIZE}" />
- <TimeBasedTriggeringPolicy interval="1" modulate="true" />
- </Policies>
+ <CronTriggeringPolicy schedule="0 0 * * * ?" />
<Filters>
<ThresholdFilter level="error" onMatch="DENY" onMismatch="NEUTRAL" />
<ThresholdFilter level="trace" onMatch="ACCEPT" onMismatch="DENY" />
</Filters>
<DefaultRolloverStrategy>
- <!-- 删除指定目录下7天之前的日志-->
- <Delete basePath="${LOG_HOME}/${BACKUP_HOME}" maxDepth="1">
- <IfFileName glob="*/${SERVER_NAME}*.log" />
- <IfLastModified age="7d" />
- </Delete>
- <Delete basePath="${LOG_HOME}/dev_${BACKUP_HOME}" maxDepth="1">
- <IfFileName glob="*/dev_${SERVER_NAME}*.log" />
- <IfLastModified age="7d" />
+ <Delete basePath="${LOG_HOME}" maxDepth="2">
+ <IfFileName glob="*.log" />
+ <IfLastModified age="200H" />
</Delete>
</DefaultRolloverStrategy>
</RollingFile>
@@ -42,10 +33,7 @@
fileName="${LOG_HOME}/dev_${SERVER_NAME}_error.log"
filePattern="${LOG_HOME}/dev_${BACKUP_HOME}/dev_${SERVER_NAME}_error.%d{yyyy-MM-dd-HH}.log">
<PatternLayout pattern="%d{yyyy.MM.dd HH:mm:ss.SSS} [%thread] %level [%C{36}.%M:%L] - %msg%xEx%n" />
- <Policies>
- <SizeBasedTriggeringPolicy size="${EVERY_FILE_SIZE}" />
- <TimeBasedTriggeringPolicy interval="1" modulate="true" />
- </Policies>
+ <CronTriggeringPolicy schedule="0 0 * * * ?" />
<Filters>
<ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY" />
</Filters>
@@ -55,10 +43,7 @@
fileName="${LOG_HOME}/${SERVER_NAME}.log"
filePattern="${LOG_HOME}/${BACKUP_HOME}/${SERVER_NAME}.%d{yyyy-MM-dd-HH}.log">
<PatternLayout pattern="%d{yyyy.MM.dd HH:mm:ss.SSS} [%thread] %level [%C{36}.%M:%L] - %msg%xEx%n" />
- <Policies>
- <SizeBasedTriggeringPolicy size="${EVERY_FILE_SIZE}" />
- <TimeBasedTriggeringPolicy interval="1" modulate="true" />
- </Policies>
+ <CronTriggeringPolicy schedule="0 0 * * * ?" />
</RollingRandomAccessFile>
</appenders>
 
@@ -66,12 +51,14 @@
<logger name="org.slf4j" level="INFO" />
<logger name="org.quartz" level="INFO" />
<logger name="org.redisson" level="INFO" />
+ <logger name="com.alibaba" level="WARN" />
<logger name="com.atomikos" level="WARN" />
<logger name="com.alibaba.dubbo" level="INFO" />
<logger name="org.apache.activemq" level="INFO" />
<logger name="org.springframework" level="INFO" />
<logger name="com.weibo.api.motan" level="INFO" />
<logger name="org.apache.zookeeper" level="WARN" />
+ <logger name="com.baomidou.mybatisplus" level="INFO" />
<logger name="org.springframework.web" level="${OUTPUT_LOG_LEVEL}" />
<Logger name="org.ibase4j" level="${OUTPUT_LOG_LEVEL}" additivity="false" includeLocation="true">
<appender-ref ref="Console" />

登录 后才可以发表评论