zhujiawen12345 opened a new issue #2255:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2255
之前启动成功debug日志都会打印watching microservice ****** successfully, the chosen
service center address is ****,但是最近不知道为啥不打印了,debug代码发现已经调用了LOGGER.info但是日志中没有记录
LOGGER.info(
"watching microservice {} successfully, "
+ "the chosen service center address is {}:{}",
selfMicroserviceId,
ipPort.getHostOrIp(),
ipPort.getPort());
log4j相关代码:
<AsyncLogger
name="org.apache.servicecomb.serviceregistry.client.http" level="INFO"
additivity="false"
includeLocation="true">
<AppenderRef ref="NUWA_DEBUG" />
</AsyncLogger>
<RollingFile name="NUWA_DEBUG"
fileName="${sys:LOG_HOME}/debug/nuwa_debug.log"
filePattern="${sys:LOG_HOME}/debug/nuwa_debug-%d{yyyy-MM-dd}-%i.log.gz"
immediateFlush="false"
append="true">
<PatternLayout
pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level -
[%file:%method:%line] - [%X{requestId}] - %msm%n" />
<Policies>
<SizeBasedTriggeringPolicy size="50MB" />
<TimeBasedTriggeringPolicy />
</Policies>
<DefaultRolloverStrategy max="100">
<DELETE basePath="${sys:LOG_HOME}/debug/" maxDepth="1">
<IfFileName glob="nuwa_debug-*.log.gz" />
<IfLastModified age="30d" />
</DELETE>
</DefaultRolloverStrategy>
</RollingFile>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]