21 lines
563 B
C++
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
|