5#ifndef FLUTTER_FML_PLATFORM_FUCHSIA_LOG_STATE_H_
6#define FLUTTER_FML_PLATFORM_FUCHSIA_LOG_STATE_H_
8#include <fidl/fuchsia.logger/cpp/fidl.h>
9#include <lib/fidl/cpp/wire/internal/transport_channel.h>
10#include <lib/zx/socket.h>
13#include <initializer_list>
28 const zx::socket&
socket()
const {
return socket_; }
31 std::shared_ptr<const std::vector<std::string>>
tags()
const {
32 return std::atomic_load(&tags_);
41 void SetTags(
const std::initializer_list<std::string>&
tags);
48 fidl::ClientEnd<::fuchsia_logger::LogSink> client_end_;
50 std::shared_ptr<const std::vector<std::string>> tags_;
void SetTags(const std::initializer_list< std::string > &tags)
static LogState & Default()
const zx::socket & socket() const
std::shared_ptr< const std::vector< std::string > > tags() const
fidl::ClientEnd<::fuchsia_logger::LogSink > TakeClientEnd()