Adds a absl::LogSink as a consumer of logging data.
This function is thread-safe.
It is an error to attempt to add a sink that's already registered.
To avoid unbounded recursion, dispatch to registered absl::LogSinks is disabled per-thread while running the Send() method of registered absl::LogSinks. Affected messages are dispatched to a special internal sink instead which writes them to stderr.
Do not call this inside absl::LogSink::Send.
| Name | Description |
|---|---|
| sink | The sink to register. |