Skip to content

Commit

Permalink
u d
Browse files Browse the repository at this point in the history
  • Loading branch information
youfanx committed Aug 13, 2024
1 parent 69f8dcf commit 5bdb7d7
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
41 changes: 41 additions & 0 deletions rxlib-x/src/test/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="false" debug="false">
<property name="log.dir" value="/xiaofan-api/logs"/>
<springProperty name="appName" source="spring.application.name"/>
<property name="days" value="2"/>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder charset="UTF-8">
<pattern>%yellow(%d{HH:mm:ss.SSS}) %highlight(%-5p) %magenta([%t]) %cyan(%c{20}) - %m%n</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level>
</filter>
</appender>
<appender name="infoAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.dir}/${appName}_info.log</file>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>DEBUG</level>
</filter>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${log.dir}/${appName}_info.%d{yyyyMMdd}_%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>500MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
<maxHistory>${days}</maxHistory>
</rollingPolicy>
<encoder charset="UTF-8">
<pattern>%d{HH:mm:ss.SSS} %-5p [%t] %c{20} %X{rx-traceId} - %m%n</pattern>
</encoder>
</appender>
<logger name="org.rx.repository" level="INFO"/>
<logger name="org.rx.net.nameserver" level="DEBUG"/>
<logger name="com.xxl.job.core.util.XxlJobRemotingUtil" level="WARN" additivity="false">
<appender-ref ref="infoAppender"/>
</logger>

<root level="INFO">
<appender-ref ref="STDOUT"/>
<!-- <appender-ref ref="infoAppender"/>-->
</root>
</configuration>
1 change: 1 addition & 0 deletions rxlib/src/main/java/org/rx/bean/DataTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import static org.rx.core.Extends.tryAs;
import static org.rx.core.Sys.fromJson;

//SimpleResultSet
@Slf4j
@SuppressWarnings(Constants.NON_RAW_TYPES)
@NoArgsConstructor
Expand Down
2 changes: 1 addition & 1 deletion rxlib/src/main/java/org/rx/core/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ enum MetricName {
String CACHE_REGION_INTERFACE_METHOD = "IM";
String CACHE_REGION_SKIP_SERIALIZE = "SS";

String STACK_TRACE_FLAG = "\nat ";
String STACK_TRACE_FLAG = "\n\tat ";

/**
* do not edit
Expand Down

0 comments on commit 5bdb7d7

Please sign in to comment.