new command 'log show' to dump out last log messages. useful for serial when you've missed the startup messages

This commit is contained in:
proddy
2024-09-09 17:29:55 +02:00
parent 8617658169
commit 5fae9872e6
4 changed files with 49 additions and 1 deletions

View File

@@ -51,6 +51,12 @@ static inline EMSESP & to_app(Shell & shell) {
static void console_log_level(Shell & shell, const std::vector<std::string> & arguments) {
if (!arguments.empty()) {
// special command called show which dumps out the contents of the web log buffer
if (arguments[0] == "show") {
EMSESP::webLogService.show(shell);
return;
}
uuid::log::Level level;
if (uuid::log::parse_level_lowercase(arguments[0], level)) {