5#include "flutter/fml/platform/fuchsia/log_interest_listener.h"
7#include <fidl/fuchsia.diagnostics/cpp/fidl.h>
8#include <fidl/fuchsia.logger/cpp/fidl.h>
9#include <zircon/assert.h>
11#include "flutter/fml/log_level.h"
12#include "flutter/fml/log_settings.h"
17 log_sink_->WaitForInterestChange().Then(
18 [
this](fidl::Result<fuchsia_logger::LogSink::WaitForInterestChange>&
20 if (interest_result.is_error()) {
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());
34 const fuchsia_diagnostics::Interest& interest) {
37 if (severity <= fuchsia_diagnostics::Severity::kDebug) {
41 }
else if (severity <= fuchsia_diagnostics::Severity::kWarn) {
static void HandleInterestChange(const fuchsia_diagnostics::Interest &interest)
void AsyncWaitForInterestChanged()
constexpr LogSeverity kLogFatal
void SetLogSettings(const LogSettings &settings)
constexpr LogSeverity kLogError
constexpr LogSeverity kLogInfo
constexpr LogSeverity kLogWarning