[#absl-RemoveLogSink]
= xref:absl.adoc[absl]::RemoveLogSink
:relfileprefix: ../
:mrdocs:

Removes a `absl&colon;&colon;LogSink` as a consumer of logging data&period;

== Synopsis

Declared in `&lt;absl&sol;log&sol;log&lowbar;sink&lowbar;registry&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
RemoveLogSink(xref:absl/LogSink.adoc[absl::LogSink]* sink);
----

== Description

This function is thread&hyphen;safe&period;

It is an error to attempt to remove a sink that isn&apos;t registered&period;

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

Do not call this inside `absl&colon;&colon;LogSink&colon;&colon;Send`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sink*
| The sink to unregister&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
