Skip to content

Commit

Permalink
Align log messages after log level
Browse files Browse the repository at this point in the history
  • Loading branch information
imwints committed Nov 29, 2023
1 parent b31fce8 commit 1b6ce49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/btop_log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ namespace Logger {
std::call_once(log_file_header, [&lwrite] {
fmt::print(lwrite, "\n{}===> btop++ v.{}\n", strf_time(tdf), Global::Version);
});
fmt::print(lwrite, "{}{}: {}\n", strf_time(tdf), log_levels.at(level), msg);
fmt::print(lwrite, "{}{:10}{}\n", strf_time(tdf), log_levels.at(level), msg);
}
else {
logfile.clear();
Expand Down

0 comments on commit 1b6ce49

Please sign in to comment.