|
Hello everyone, is there any simple way to align level just like this? Or I should write a custom formatter to achieve this goal? |
Answered by
tt4g
Jun 6, 2025
Replies: 2 comments 2 replies
|
Yes, the Align flag only affects format patterns, so alignments are generated in square brackets that appear before or after the format pattern. spdlog/include/spdlog/pattern_formatter-inl.h Lines 115 to 127 in b18a234 |
1 reply
Answer selected by
wanzzhehe
|
I think you can simply use the align flags without any custom code. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, the Align flag only affects format patterns, so alignments are generated in square brackets that appear before or after the format pattern.
Please create a custom formatter with reference to level_formatter:
spdlog/include/spdlog/pattern_formatter-inl.h
Lines 115 to 127 in b18a234