|
20 | 20 |
|
21 | 21 | --- |
22 | 22 |
|
23 | | -> [中文文档](README_CN.md) |
| 23 | +> [中文文档](README.md) |
24 | 24 |
|
25 | 25 | ## 📖 Introduction |
26 | 26 |
|
@@ -106,6 +106,7 @@ After analysis, a SQLite database file `jar-analyzer.db` will be generated in th |
106 | 106 | | `--black-list-file <file>` | — | None | Read blacklist from file | |
107 | 107 | | `--white-list-file <file>` | — | None | Read whitelist from file | |
108 | 108 | | `--decompile <class>` | `-d` | None | Decompile a specific class and print source to console (e.g. `com.example.MyClass`) | |
| 109 | +| `--log-level <level>` | — | `INFO` | Log level: `DEBUG`, `INFO`, `WARN`, `ERROR` | |
109 | 110 | | `--help` | `-h` | — | Display help information | |
110 | 111 |
|
111 | 112 | ## 📚 Argument Details |
@@ -203,6 +204,25 @@ Enabling `--no-fix-impl` disables this behavior, keeping only the **literal dire |
203 | 204 | java -jar jar-analyzer-engine.jar --jar app.jar --no-fix-impl |
204 | 205 | ``` |
205 | 206 |
|
| 207 | +### `--log-level` (Log Level) |
| 208 | + |
| 209 | +Sets the log output level for the engine at runtime. Defaults to `INFO`. The following levels are supported (case-insensitive): |
| 210 | + |
| 211 | +| Level | Description | |
| 212 | +|-------|-------------| |
| 213 | +| `DEBUG` | Output all debug information, most verbose | |
| 214 | +| `INFO` | Output general runtime information (default) | |
| 215 | +| `WARN` | Output only warnings and errors | |
| 216 | +| `ERROR` | Output only error messages | |
| 217 | + |
| 218 | +```bash |
| 219 | +# Debug mode: see detailed analysis process |
| 220 | +java -jar jar-analyzer-engine.jar --jar app.jar --log-level debug |
| 221 | + |
| 222 | +# Quiet mode: show only warnings and errors |
| 223 | +java -jar jar-analyzer-engine.jar --jar app.jar --log-level warn |
| 224 | +``` |
| 225 | + |
206 | 226 | ### `--decompile` / `-d` (Decompile Mode) |
207 | 227 |
|
208 | 228 | Specify a fully-qualified class name, and the engine will locate the corresponding class file in the `jar-analyzer-temp` directory, decompile it to Java source code using the built-in FernFlower decompiler, and output the result to the console. |
@@ -600,8 +620,8 @@ EngineBuildRunner.run(config); |
600 | 620 | ``` |
601 | 621 | jar-analyzer-engine/ |
602 | 622 | ├── src/main/java/me/n1ar4/jar/analyzer/ |
603 | | -│ ├── engine/ # Engine entry layer |
604 | | -│ │ ├── EngineMain.java # CLI main entry point |
| 623 | +│ ├── EngineMain.java # CLI main entry point |
| 624 | +│ ├── engine/ # Engine core layer |
605 | 625 | │ │ ├── EngineBuildRunner.java # Pipeline orchestration core |
606 | 626 | │ │ ├── EngineConfig.java # Configuration class |
607 | 627 | │ │ ├── EngineBuildCmd.java # CLI argument definitions (JCommander) |
|
0 commit comments