impr: Align log output better
This commit is contained in:
parent
0bbd21f25a
commit
632ca944de
@ -45,6 +45,9 @@ namespace hex::log {
|
|||||||
fmt::print(dest, ts, "{0} ", level);
|
fmt::print(dest, ts, "{0} ", level);
|
||||||
|
|
||||||
fmt::print(dest, "[{0}] ", IMHEX_PROJECT_NAME);
|
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>
|
template<typename... T>
|
||||||
|
Loading…
Reference in New Issue
Block a user