-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Background
As I discussed with @eatradish in AOSC Telegram group, oma is considering replacing the current logging system with others. And at the recent AOSCC 2025 conference, I happened to talk about the performance optimization details of spdlog-rs. As the author of spdlog-rs, I'd like to push forward with getting oma to try out spdlog-rs.
@NotEvenANeko is interested in participating in this work, so the porting will be assigned to her. I and other oma collaborators will review the PR and help if needed.
Notes
The current logging system used in oma is tracing, and oma has customized some of its own logic that could probably be optimized away (I've found so far):
-
OmaLayer
is used to output styled level text, in spdlog-rs, a formatter can define a styled range, thenStdStramSink
will automatically output terminal-compatible styles for the range, and the styles can be customized as well. -
Deleting old log files can be done automatically by
RotatingFileSink
in spdlog-rs.