class ThrottledLogger
Defined at line 44 of file ../../src/media/audio/services/common/logging.h
Public Methods
void ~ThrottledLogger ()
Defined at line 46 of file ../../src/media/audio/services/common/logging.h
std::unique_ptr<ThrottledLogger> FromCounts (std::vector<std::pair<FuchsiaLogSeverity, int64_t>> counts)
Given a list of pairs `(severity, count)`, each `count` messages are logged at `severity`.
If multiple severities are enabled at a specific time, the higest severity is used.
Defined at line 51 of file ../../src/media/audio/services/common/logging.cc
bool next_enabled ()
Returns true if the next log message should be enabled.
Intended to be called by THROTTLED_LOG only.
FuchsiaLogSeverity current_severity ()
Returns the severity to use for the current log message.
Intended to be called by THROTTLED_LOG only.