Removes a absl::LogSink as a consumer of logging data.

Synopsis

Declared in <absl/log/log_sink_registry.h>

void
RemoveLogSink(absl::LogSink* sink);

Description

This function is thread‐safe.

It is an error to attempt to remove a sink that isn't registered.

To avoid unbounded recursion, dispatch to registered absl::LogSink`s is disabled per‐thread while running the `Send() method of registered absl::LogSink`s. Affected messages are dispatched to a special internal sink instead which writes them to `stderr.

Do not call this inside absl::LogSink::Send.

Parameters

Name

Description

sink

The sink to unregister.

Created with MrDocs