Skip to content

Adjust logback outfile file upon startup #4823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexarchambault
Copy link
Collaborator

If anything in Mill logs with slf4j, logback is in charge of handling those logs. If ever the Mill out directory is customized, we need to adjust the logback log file location too, so that logs aren't written to the default out/mill.log.

@lefou
Copy link
Member

lefou commented Mar 31, 2025

Could you clarify how this matches or bypasses #4680?

@alexarchambault
Copy link
Collaborator Author

@lefou This doesn't do anything for #4680. It's more a follow-up of #3530. Before this PR, if any library used by the build logs with slf4j, the log output goes to out/mill.log, without respecting any out directory customization. This PR fixes that, by sending the logs to mill.log under the right out directory (taking into account out directory customization).

I stumbled upon that by working on #4800, even though it doesn't need this anymore.

@alexarchambault
Copy link
Collaborator Author

Still a draft, as I'd like to add a non-regression test for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants