-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
76 additions
and
2 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
redis/package/redis-console-package/src/main/config/arthas-logback.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configuration> | ||
|
||
<property name="baseDir" value="/opt/logs/100004374" /> | ||
<property name="appName" value="xpipe-console" /> | ||
<property name="delayLogName" value="redis-delay" /> | ||
<property name="nettyClient" value="netty-client" /> | ||
|
||
<appender name="CONSOLE" class="com.alibaba.arthas.deps.ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern>[%d{HH:mm:ss:SSS}][%p][%t][%X{class}]%message%xEx%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<appender name="ROLLING" class="com.alibaba.arthas.deps.ch.qos.logback.core.rolling.RollingFileAppender"> | ||
<file>${baseDir}/${appName}-proxy-client.log</file> | ||
|
||
<!-- 轮转策略 --> | ||
<rollingPolicy class="com.alibaba.arthas.deps.ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | ||
<fileNamePattern>${baseDir}/${appName}-proxy-client-%d{yyyy-MM-dd}-%i.log.gz</fileNamePattern> | ||
<MaxHistory>30</MaxHistory> | ||
<totalSizeCap>10GB</totalSizeCap> | ||
<maxFileSize>100MB</maxFileSize> | ||
</rollingPolicy> | ||
<!-- 日志输出格式 --> | ||
<encoder charset="utf-8"> | ||
<pattern>[%d{HH:mm:ss:SSS}][%p][%t][%c]%message%xEx%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<root level="INFO"> | ||
<appender-ref ref="ROLLING" /> | ||
</root> | ||
|
||
</configuration> |
2 changes: 1 addition & 1 deletion
2
redis/package/redis-console-package/src/main/config/redis-console.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
MODE=service | ||
PID_FOLDER=. | ||
JAVA_OPTS="$JAVA_OPTS -DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector -Dlogging.config=config/log4j2.xml -Dlog4j.configurationFile=config/log4j2.xml -Dlocalpath=config -DFXXPIPE_HOME=config" | ||
JAVA_OPTS="$JAVA_OPTS -DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector -Dlogging.config=config/log4j2.xml -Dlog4j.configurationFile=config/log4j2.xml -Darthas.logback.configurationFile=config/arthas-logback.xml -Dlocalpath=config -DFXXPIPE_HOME=config" | ||
LOG_FOLDER=/opt/logs/100004374/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
redis/package/redis-keeper-package/src/main/config/arthas-logback.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configuration> | ||
|
||
<property name="baseDir" value="/opt/logs/100004376" /> | ||
<property name="appName" value="xpipe-keeper" /> | ||
<property name="delayLogName" value="redis-delay" /> | ||
<property name="nettyClient" value="netty-client" /> | ||
|
||
<appender name="CONSOLE" class="com.alibaba.arthas.deps.ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern>[%d{HH:mm:ss:SSS}][%p][%t][%X{class}]%message%xEx%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<appender name="ROLLING" class="com.alibaba.arthas.deps.ch.qos.logback.core.rolling.RollingFileAppender"> | ||
<file>${baseDir}/${appName}-proxy-client.log</file> | ||
|
||
<!-- 轮转策略 --> | ||
<rollingPolicy class="com.alibaba.arthas.deps.ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | ||
<fileNamePattern>${baseDir}/${appName}-proxy-client-%d{yyyy-MM-dd}-%i.log.gz</fileNamePattern> | ||
<MaxHistory>30</MaxHistory> | ||
<totalSizeCap>10GB</totalSizeCap> | ||
<maxFileSize>100MB</maxFileSize> | ||
</rollingPolicy> | ||
<!-- 日志输出格式 --> | ||
<encoder charset="utf-8"> | ||
<pattern>[%d{HH:mm:ss:SSS}][%p][%t][%c]%message%xEx%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<root level="INFO"> | ||
<appender-ref ref="ROLLING" /> | ||
</root> | ||
|
||
</configuration> |
2 changes: 1 addition & 1 deletion
2
redis/package/redis-keeper-package/src/main/config/redis-keeper.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
MODE=service | ||
PID_FOLDER=. | ||
JAVA_OPTS="$JAVA_OPTS -DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector -Dlogging.config=config/log4j2.xml -Dlog4j.configurationFile=config/log4j2.xml -Dlocalpath=config" | ||
JAVA_OPTS="$JAVA_OPTS -DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector -Dlogging.config=config/log4j2.xml -Dlog4j.configurationFile=config/log4j2.xml -Darthas.logback.configurationFile=config/arthas-logback.xml -Dlocalpath=config" | ||
LOG_FOLDER=/opt/logs/100004376/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters