#include <log_interest_listener.h>
Definition at line 18 of file log_interest_listener.h.
◆ LogInterestListener()
fml::LogInterestListener::LogInterestListener |
( |
fidl::ClientEnd<::fuchsia_logger::LogSink > |
client_end, |
|
|
async_dispatcher_t * |
dispatcher |
|
) |
| |
|
inline |
◆ AsyncWaitForInterestChanged()
void fml::LogInterestListener::AsyncWaitForInterestChanged |
( |
| ) |
|
Definition at line 16 of file log_interest_listener.cc.
16 {
17 log_sink_->WaitForInterestChange().Then(
18 [this](fidl::Result<fuchsia_logger::LogSink::WaitForInterestChange>&
19 interest_result) {
20 if (interest_result.is_error()) {
21
22 auto error = interest_result.error_value();
23 ZX_ASSERT_MSG(error.is_framework_error() &&
24 error.framework_error().is_dispatcher_shutdown(),
25 "%s", error.FormatDescription().c_str());
26 return;
27 }
30 });
31}
static void HandleInterestChange(const fuchsia_diagnostics::Interest &interest)
void AsyncWaitForInterestChanged()
◆ HandleInterestChange()
void fml::LogInterestListener::HandleInterestChange |
( |
const fuchsia_diagnostics::Interest & |
interest | ) |
|
|
static |
Definition at line 33 of file log_interest_listener.cc.
34 {
35 auto severity =
37 if (severity <= fuchsia_diagnostics::Severity::kDebug) {
41 } else if (severity <= fuchsia_diagnostics::Severity::kWarn) {
45 } else {
47 }
48}
constexpr LogSeverity kLogFatal
void SetLogSettings(const LogSettings &settings)
constexpr LogSeverity kLogError
constexpr LogSeverity kLogInfo
constexpr LogSeverity kLogWarning
The documentation for this class was generated from the following files: