class LogConnection

Defined at line 26 of file ../../sdk/lib/syslog/structured_backend/cpp/log_connection.h

LogConnection represents a connection to a logger. This will not watch for interest updates.

Public Methods

zx::result<std::pair<LogConnection, std::optional<FuchsiaLogSeverity>>> Create (fidl::UnownedClientEnd<fuchsia_logger::LogSink> client_end)

Initializes a connection provided a client end. This will not retain `client_end`.

Defined at line 11 of file ../../sdk/lib/syslog/structured_backend/cpp/log_connection.cc

void LogConnection ()

Defined at line 32 of file ../../sdk/lib/syslog/structured_backend/cpp/log_connection.h

void LogConnection (zx::iob iob)

Defined at line 33 of file ../../sdk/lib/syslog/structured_backend/cpp/log_connection.h

void LogConnection (LogConnection && )

Defined at line 35 of file ../../sdk/lib/syslog/structured_backend/cpp/log_connection.h

LogConnection & operator= (LogConnection && )

Defined at line 36 of file ../../sdk/lib/syslog/structured_backend/cpp/log_connection.h

bool IsValid ()

Defined at line 38 of file ../../sdk/lib/syslog/structured_backend/cpp/log_connection.h

zx::result<> FlushBuffer (LogBuffer & buffer)

Flushes the LogBuffer to the connection.

Defined at line 41 of file ../../sdk/lib/syslog/structured_backend/cpp/log_connection.h

Friends

class Logger