heihei180 opened a new issue, #7879:
URL: https://github.com/apache/rocketmq/issues/7879

   ### Before Creating the Bug Report
   
   - [X] I found a bug, not just asking a question, which should be created in 
[GitHub Discussions](https://github.com/apache/rocketmq/discussions).
   
   - [X] I have searched the [GitHub 
Issues](https://github.com/apache/rocketmq/issues) and [GitHub 
Discussions](https://github.com/apache/rocketmq/discussions)  of this 
repository and believe that this is not a duplicate.
   
   - [X] I have confirmed that this bug belongs to the current repository, not 
other repositories of RocketMQ.
   
   
   ### Runtime platform environment
   
   ubutun 20
   
   ### RocketMQ version
   
   dev
   
   ### JDK Version
   
   openjdk 17
   
   ### Describe the Bug
   
   this file  `example/src/main/resources/logback.xml` config the log file path 
is error.
   
   line 23 and line 26.
   like this: 
   ```xml
   
           <file>/Users/xiweng.yy/logs/nacos/perf.log</file>
           
           <rollingPolicy 
class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
               
<fileNamePattern>/Users/xiweng.yy/logs/nacos/perf.log.%i</fileNamePattern>
               <maxIndex>${JM.LOG.RETAIN.COUNT:-7}</maxIndex>
           </rollingPolicy>
   ```
   
   i think should use 
   
   ```xml
           <file>${user.home}/logs/nacos/perf.log</file>
           
           <rollingPolicy 
class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
               
<fileNamePattern>${user.home}/logs/nacos/perf.log.%i</fileNamePattern>
               <maxIndex>${JM.LOG.RETAIN.COUNT:-7}</maxIndex>
           </rollingPolicy>
   
   ```
   
   ### Steps to Reproduce
   
   run `com.alibaba.nacos.example.App#main` 
   
   ### What Did You Expect to See?
   
   modify the log file 's path.
   
   ### What Did You See Instead?
   
   use ${user.home} or another.
   
   ### Additional Context
   
   _No response_


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to