Files
bolar_2/main/diagnostics/device_log_formatter.h
2026-11-27 16:38:11 +08:00

21 lines
563 B
C++

#pragma once
#include <cstdarg>
namespace borla {
// Installs a process-wide ESP_LOG output formatter. Runtime log lines become:
// [AA:BB:CC:DD:EE:FF][2026-07-21 14:23:09.962] I Tag: message
// Before the server synchronizes the clock, the time field explicitly reports
// TIME-UNSYNCED plus monotonic milliseconds instead of a misleading 1970 date.
class DeviceLogFormatter final {
public:
static bool Initialize();
static void MarkClockSynchronized();
private:
static int Print(const char* format, va_list arguments);
};
} // namespace borla