Arthas 3.7.2 logger指令 无任何打印
- Dominant language
- Java
- Stars
- 37.5k
- Forks
- 7.6k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 4
Description
- [o] 我已经在 [issues](https://github.com/alibaba/arthas/issues) 里搜索,没有重复的issue。
### 环境信息
* `arthas-boot.jar` 或者 `as.sh` 的版本: 3.7.2
* Arthas 版本: 3.7.2
* 操作系统版本: macOS 12.7
* 目标进程的JVM版本: 1.8 or 17
* 执行`arthas-boot`的版本: 3.7.2
### 重现问题的步骤
1. java -jar arthas-demo.jar
2. java -jar arthas-packaging-3.7.2-bin/arthas-boot.jar
3. 选择工程编号
4. logger
5. sc -d com.example.demo.task.LogTask | grep classLoaderHash
6. logger --name com.example.demo.task.LogTask --level debug -c 7c3df479
### 期望的结果
logger, 指令正常打印日志相关参数
logger --name com.example.demo.task.LogTask --level debug -c 7c3df479 ,正常修改日志级别
### 实际运行的结果
logger ,指令不打印任何信息
logger --name com.example.demo.task.LogTask --level debug -c 7c3df479 ,指令修改不成功
源码地址:
https://github.com/807893362/ArthasDemo
Contributor guide
Research direction
Start by reproducing the issue with arthas-demo.jar and arthas-boot.jar 3.7.2, then run the listed logger and sc commands against the selected JVM. Investigate the logger command entry point and its handling of --name, --level, and -c 7c3df479. Done means logger prints the logging parameters and successfully changes the target class's log level.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100