-
Hello everyone, is there any simple way to align level just like this?
Or I should write a custom formatter to achieve this goal? |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
-
I think you can simply use the align flags without any custom code. |
Beta Was this translation helpful? Give feedback.
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