class LogTail
Defined at line 29 of file ../../src/bringup/bin/critical-services/storage-watchdog/diagnostics_text.h
Keeps the newest log lines worth having after a storage stall: the last |max_storage_lines|
from storage and suspend components at any severity, and WARN and above from everything else,
up to |max_lines| and |max_bytes| in total. Messages that only differ in tokens with digits
(e.g. the same error for every CPU) are folded into a recent earlier line as a count.
Public Methods
void LogTail (size_tmax_lines,size_tmax_storage_lines,size_tmax_bytes)
Defined at line 31 of file ../../src/bringup/bin/critical-services/storage-watchdog/diagnostics_text.h
void AddJson (std::string_view json)
Adds the messages in one JSON batch from fuchsia.diagnostics/ArchiveAccessor.
Defined at line 206 of file ../../src/bringup/bin/critical-services/storage-watchdog/diagnostics_text.cc
void Add (int64_ttimestamp_ns,std::string_viewmoniker,std::string_viewseverity,std::string_viewmessage)
Defined at line 149 of file ../../src/bringup/bin/critical-services/storage-watchdog/diagnostics_text.cc
std::vector<std::string> Lines ()
Oldest first.
Defined at line 221 of file ../../src/bringup/bin/critical-services/storage-watchdog/diagnostics_text.cc