Skip to content

[for upstream] mlog: Add async I/O and directory prefix support to FileMLogger#236

Open
akash-a-n wants to merge 1 commit into
mainfrom
feature/mlog-async-io
Open

[for upstream] mlog: Add async I/O and directory prefix support to FileMLogger#236
akash-a-n wants to merge 1 commit into
mainfrom
feature/mlog-async-io

Conversation

@akash-a-n

@akash-a-n akash-a-n commented May 26, 2026

Copy link
Copy Markdown
  • Add setWriteExecutor() for asynchronous off-thread disk I/O
  • Pre-format logs on calling thread, move serialized data to executor
  • Add setDir() for directory prefix support via derivePath()
  • Avoid this capture by moving all data into lambda
  • Update FileMLoggerFactory to support new features
  • Add test coverage for FileMLogger and FileMLoggerFactory

This change is Reviewable

- Add setWriteExecutor() for asynchronous off-thread disk I/O
- Pre-format logs on calling thread, move serialized data to executor
- Add setDir() for directory prefix support via derivePath()
- Avoid this capture by moving all data into lambda
- Update FileMLoggerFactory to support new features
- Add test coverage for FileMLogger and FileMLoggerFactory
@akash-a-n akash-a-n force-pushed the feature/mlog-async-io branch from b55c9cf to bb7b287 Compare May 29, 2026 11:59

@afrind afrind left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@afrind reviewed 7 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on gmarzot, michalhosna, mondain, Oxyd, peterchave, suhasHere, and TimEvens).

@afrind

afrind commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Upstream PR: facebookexperimental#186

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