Skip to content

Conversation

@zdevito
Copy link
Contributor

@zdevito zdevito commented Nov 6, 2025

Stack from ghstack (oldest at bottom):

Injects [actor=] into the log message of the python actor.

The prefix is configurable by redefining monarch.actor.per_actor_logging_prefix callback. Setting to None disables the filter that alters the logs.

Hopefully this works pretty broadly since it hooks in as a filter on logging handlers.

Differential Revision: D85994688

NOTE FOR REVIEWERS: This PR has internal Meta-specific changes or comments, please review them on Phabricator!

Injects [actor=<the fully qualified actor name>] into the log message of the python actor.

The prefix is configurable by redefining `monarch.actor.per_actor_logging_prefix` callback. Setting to None disables the filter that alters the logs.

Hopefully this works pretty broadly since it hooks in as a filter on logging handlers.

Differential Revision: [D85994688](https://our.internmc.facebook.com/intern/diff/D85994688/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D85994688/)!

[ghstack-poisoned]
zdevito added a commit that referenced this pull request Nov 6, 2025
Injects [actor=<the fully qualified actor name>] into the log message of the python actor.

The prefix is configurable by redefining `monarch.actor.per_actor_logging_prefix` callback. Setting to None disables the filter that alters the logs.

Hopefully this works pretty broadly since it hooks in as a filter on logging handlers.

Differential Revision: [D85994688](https://our.internmc.facebook.com/intern/diff/D85994688/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D85994688/)!

ghstack-source-id: 321422564
Pull Request resolved: #1767
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 6, 2025
@meta-codesync meta-codesync bot closed this in 9863cb2 Nov 6, 2025
@meta-codesync
Copy link

meta-codesync bot commented Nov 6, 2025

This pull request has been merged in 9863cb2.

@facebook-github-bot
Copy link
Contributor

This pull request has been reverted by 0af6421.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported Merged meta-exported Reverted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants