class Log

Defined at line 14 of file ../../sdk/lib/ld/include/lib/ld/log-posix.h

This is a callable object that gets output to stderr.

It should be called with a single full log message ending in a newline.

Public Members

static const size_t kBufferSize

Public Methods

int operator() (std::string_view str)

Returns the number of chars written, or -1.

Defined at line 11 of file ../../sdk/lib/ld/log-posix.cc

bool operator bool ()

Returns true if there is any point in calling the output function.

Formatting output can be skipped if it won't go anywhere, but that's

presumed never to be the case for the POSIX stderr version.

Defined at line 26 of file ../../sdk/lib/ld/include/lib/ld/log-posix.h

zx::debuglog set_debuglog (zx::debuglog log)

Defined at line 31 of file ../../sdk/lib/ld/include/lib/ld/log-zircon.h

zx::socket set_socket (zx::socket socket)

Defined at line 33 of file ../../sdk/lib/ld/include/lib/ld/log-zircon.h

void TakeLogHandle (zx::handle handle)

Consume a log handle as transferred by the bootstrap protocol. This does

set_debuglog() or set_socket() if the handle is of a recognized type.

Defined at line 108 of file ../../sdk/lib/ld/log-zircon.cc