gnodet-bot commented on PR #26526:
URL: https://github.com/apache/camel/pull/26526#issuecomment-5703800585
**Spring Boot still logs to `${PID}.log`, not `<name>.log`.**
The PR description says "all three runtimes" now log to
`~/.camel/<name>.log`. Quarkus and Camel Main are correctly wired up. But
`spring-boot-logback.xml` (unchanged in this PR) writes to:
```xml
<property name="LOG_FILE"
value="${user.home}${file.separator}.camel${file.separator}${PID}.log"/>
```
So Spring Boot logs to `~/.camel/<PID>.log`, which `camel log` and the TUI
won't find by name.
The simplest fix is to make the logback config use the name you're now
passing via `-Dcamel.main.name` (which `spring-boot.run.jvmArguments`
propagates as system properties):
```xml
<property name="LOG_FILE"
value="${user.home}${file.separator}.camel${file.separator}${camel.main.name:-${PID}}.log"/>
```
With the `-Dcamel.main.name` gap fixed above, this would give all three
runtimes a consistent `~/.camel/<name>.log` log file.
_This review was generated by an AI agent, Hermès on behalf of @gnodet._
<!-- reviewer: gnodet-bot -->
--
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]