You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "heihei180 (via GitHub)" <gi...@apache.org> on 2024/03/03 13:20:05 UTC
[I] [Bug] Bug title logback.xml Incorrect configuration [rocketmq]
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: commits-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Bug title logback.xml Incorrect configuration [rocketmq]
Posted by "heihei180 (via GitHub)" <gi...@apache.org>.
heihei180 commented on issue #7879:
URL: https://github.com/apache/rocketmq/issues/7879#issuecomment-1975638800
> <img alt="image" width="623" src="https://private-user-images.githubusercontent.com/2684384/309610852-49cf0ac7-9ca0-4300-93ec-85b5512a6b7c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDk1MjM0OTIsIm5iZiI6MTcwOTUyMzE5MiwicGF0aCI6Ii8yNjg0Mzg0LzMwOTYxMDg1Mi00OWNmMGFjNy05Y2EwLTQzMDAtOTNlYy04NWI1NTEyYTZiN2MucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDMwNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAzMDRUMDMzMzEyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzgxMjE5ZTQzMGM5MWVjMmUzZDhjYWEzOWU0MjQ2OGFmYzQyOTQ4NTllZGEyMzAwZDNkNThlM2JiMzZjYzhjNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.MMzrqjWmrz_y7NU3V9tiKw88JyGj15QGgoz5FN3m2hw">
> it seems there is not config file in example path
on... sorry, this issue is with [Nacos ](https://github.com/alibaba/nacos/blob/develop/example/src/main/resources/logback.xml)as I am reading both projects simultaneously
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Bug title logback.xml Incorrect configuration [rocketmq]
Posted by "joeCarf (via GitHub)" <gi...@apache.org>.
joeCarf commented on issue #7879:
URL: https://github.com/apache/rocketmq/issues/7879#issuecomment-1975173072
I'd like to check this out
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Bug title logback.xml Incorrect configuration [rocketmq]
Posted by "heihei180 (via GitHub)" <gi...@apache.org>.
heihei180 commented on issue #7879:
URL: https://github.com/apache/rocketmq/issues/7879#issuecomment-1975639480
closed
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Bug title logback.xml Incorrect configuration [rocketmq]
Posted by "leizhiyuan (via GitHub)" <gi...@apache.org>.
leizhiyuan commented on issue #7879:
URL: https://github.com/apache/rocketmq/issues/7879#issuecomment-1975546107
<img width="623" alt="image" src="https://github.com/apache/rocketmq/assets/2684384/49cf0ac7-9ca0-4300-93ec-85b5512a6b7c">
it seems there is not config file in example path
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Bug title logback.xml Incorrect configuration [rocketmq]
Posted by "heihei180 (via GitHub)" <gi...@apache.org>.
heihei180 closed issue #7879: [Bug] Bug title logback.xml Incorrect configuration
URL: https://github.com/apache/rocketmq/issues/7879
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org