Records
Functions
-
zx_koid_t FuchsiaLogGetCurrentThreadKoid ()Returns the current thread's koid.
Defined at line 119 of file ../../sdk/lib/syslog/cpp/logging_backend_fuchsia_globals.cc
-
template <typename Msg, typename... Args>void WriteStructuredLog (fuchsia_logging::LogSeverity severity, const char * file, int line, Msg msg, Args... args)Defined at line 138 of file ../../sdk/lib/syslog/cpp/log_message_impl.h
-
FakeLogSink * fake_log_sink_new ()Creates a new fake log sink.
-
void fake_log_sink_delete (FakeLogSink * fake)Deletes a log sink.
# Safety
`fake` must be from `fake_log_sink_new()`.
-
void fake_log_sink_serve (FakeLogSink * fake, uint32_t handle)Serves a new connection
# Safety
`fake` must be from `fake_log_sink_new()` and `handle` must be valid.
-
void FuchsiaLogInitGlobalLogger (const RawLogSettings * )Initializes the global logger. This is safe to call multiple times.
Defined at line 146 of file ../../sdk/lib/syslog/cpp/logging_backend_fuchsia_globals.cc
-
uint8_t FuchsiaLogGetGlobalMinSeverity ()Returns the global minimum severity. This is separate for performance reasons.
Defined at line 151 of file ../../sdk/lib/syslog/cpp/logging_backend_fuchsia_globals.cc
-
bool FlushToSocket (zx_handle_t socket, cpp20::span<const uint8_t> data, FlushConfig flush_config)Defined at line 478 of file ../../sdk/lib/syslog/structured_backend/cpp/log_buffer.cc
-
bool FlushToSocket (zx_handle_t socket, cpp20::span<const uint8_t> data, FlushConfig flush_config) -
template <typename T>auto WithRawSettings (const fuchsia_logging::LogSettings & settings, T callback)Defined at line 15 of file ../../sdk/lib/syslog/cpp/log_settings_internal.h
-
uintptr_t fake_log_sink_read_record (FakeLogSink * fake, uint8_t * dest, uintptr_t capacity)Reads a new record.
# Safety
`fake` must be from `fake_log_sink_new()` and `dest` and `capacity` must be valid.
-
Logger * FuchsiaLogGetGlobalLogger (RawLogSettings (*)() get_default_settings)Returns the global logger. This will create a logger with default settings if one does not
already exist.
Defined at line 153 of file ../../sdk/lib/syslog/cpp/logging_backend_fuchsia_globals.cc
-
zx_status_t FuchsiaLogWrite (const Logger * logger, const void * buffer, size_t len)Writes a log record to a logger. The buffer should be in the appropriate diagnostics record
format.
Defined at line 158 of file ../../sdk/lib/syslog/cpp/logging_backend_fuchsia_globals.cc
-
void FuchsiaLogForEachTag (const Logger * logger, void * context, void (*)(void *, const char *) callback)Calls `callback` for each tag for the logger.
Defined at line 163 of file ../../sdk/lib/syslog/cpp/logging_backend_fuchsia_globals.cc
-
void fake_log_sink_set_min_severity (FakeLogSink * fake, uint8_t severity)Sets the minimum severity and notifies listeners.
# Panics
This will panic if `severity` is invalid.
# Safety
`fake` must be from `fake_log_sink_new()`.
-
uintptr_t fake_log_sink_wait_for_record (FakeLogSink * fake, int64_t deadline_nanos)Waits for a record to be ready and returns its size, or zero if timed out.
# Safety
`fake` must be from `fake_log_sink_new()`.
-
const std::string GetNameForLogSeverity (fuchsia_logging::RawLogSeverity severity)Defined at line 67 of file ../../sdk/lib/syslog/cpp/host/logging_backend.cc
-
void FuchsiaLogSetStateLocked (LogState * new_state)Defined at line 134 of file ../../sdk/lib/syslog/cpp/logging_backend_fuchsia_globals.cc
-
void FuchsiaLogAcquireState ()Defined at line 137 of file ../../sdk/lib/syslog/cpp/logging_backend_fuchsia_globals.cc
-
void FuchsiaLogReleaseState ()Defined at line 139 of file ../../sdk/lib/syslog/cpp/logging_backend_fuchsia_globals.cc
-
LogState * FuchsiaLogGetStateLocked ()Defined at line 141 of file ../../sdk/lib/syslog/cpp/logging_backend_fuchsia_globals.cc