1
0
mirror of synced 2024-11-24 15:50:16 +01:00

impr: Align log output better

This commit is contained in:
WerWolv 2023-09-03 11:45:20 +02:00
parent 0bbd21f25a
commit 632ca944de

View File

@ -45,6 +45,9 @@ namespace hex::log {
fmt::print(dest, ts, "{0} ", level);
fmt::print(dest, "[{0}] ", IMHEX_PROJECT_NAME);
constexpr static auto ProjectNameLength = std::char_traits<char>::length(IMHEX_PROJECT_NAME);
fmt::print("{}", std::string(ProjectNameLength > 10 ? 0 : 10 - ProjectNameLength, ' '));
}
template<typename... T>