bolar_2 backup
This commit is contained in:
20
main/diagnostics/device_log_formatter.h
Normal file
20
main/diagnostics/device_log_formatter.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user