-
Notifications
You must be signed in to change notification settings - Fork 2k
feat(dev): add mprocs config with logging support #39771
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
Conversation
Add mprocs-with-logging.yaml configuration that logs all service output to /tmp/ directory while maintaining the standard mprocs TUI experience. This enables developers to: - Use mprocs terminal UI for monitoring services interactively - Allow AI coding assistants to read service logs from /tmp/ files - Debug issues by reviewing persistent log files Usage: bin/start --custom bin/mprocs-with-logging.yaml Log files are written to /tmp/posthog-*.log for each service. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Update log file naming to match mprocs process names exactly for better clarity when debugging with AI coding assistants. Examples: - temporal-worker-general-purpose -> posthog-temporal-worker-general-purpose.log - cyclotron-janitor -> posthog-cyclotron-janitor.log - embedding-worker -> posthog-embedding-worker.log 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
@Radu-Raicea this is ready for playing around with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 file reviewed, no comments
Size Change: 0 B Total Size: 3.05 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff! Maybe we should modify a README or other documentation with this new feature.
yep planning a follow on in the handbook for the dev section to just mention it somewhere and maybe a pr to add a note to CLAUDE.md potentially - gonna look into that or if would be noise |
👏🏻 Please also keep @PostHog/devex in the loop about this kind of work. Thanks! |
Problem
Developers working with AI coding assistants need access to service logs for debugging, but the standard mprocs TUI doesn't persist logs to files that AI tools can read.
I found this sort of broke my flywheel with
claude
or other code assistant tools. Ideally i want those tools to be able to "see" everything i see in the mprocs TUI.Changes
Added
bin/mprocs-with-logging.yaml
- an alternative mprocs configuration that:/tmp/posthog-*.log
files usingtee
Usage:
If merged then i will also make a PR to update the handbook to mention this new optional way to run with /tmp/ logging too.
How did you test this code?
Tested locally by:
bin/start --custom bin/mprocs-with-logging.yaml
/tmp/
directoryChangelog: (features only) Is this feature complete?
No - this is a developer tooling improvement, not a user-facing feature.
Examples
For example i can have
claude
now actually "see" the mprocs logs for each process such that it can justtail
andgrep
the corresponding log files in my/tmp/
dir:This PR supersedes #39623 (from fork) to make it easier for team mates to check out the feature branch.