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

@@ -23,6 +23,8 @@
#define EMSESP_FETCH_LOG_PATH "/rest/fetchLog"
#define EMSESP_LOG_SETTINGS_PATH "/rest/logSettings"
using ::uuid::console::Shell;
namespace emsesp {
class WebLogService : public uuid::log::Handler {
@@ -42,6 +44,7 @@ class WebLogService : public uuid::log::Handler {
bool compact() const;
void compact(bool compact);
void loop();
void show(Shell & shell);
virtual void operator<<(std::shared_ptr<uuid::log::Message> message);