absl::LogSink is an interface which can be extended to intercept and process particular messages (with LOG.ToSinkOnly() or LOG.ToSinkAlso()) or all messages (if registered with absl::AddLogSink). Implementations must not take any locks that might be held by the LOG caller.
Declared in <absl/log/log_sink.h>
class LogSink;
| Name | Description |
|---|---|
~LogSink [destructor] [virtual] | Destroys the log sink. |
Flush [virtual] | Sinks that buffer messages should override this method to flush the buffer and return. Flush must be thread-safe. |
Send [virtual] | Send is called synchronously during the log statement. Send must be thread-safe. |
| Name | Description |
|---|---|
LogSink [constructor] | Constructors |
operator= | Implementations may be copyable and/or movable. |
| Name | Description |
|---|---|
AddLogSink | Adds a absl::LogSink as a consumer of logging data. |
RemoveLogSink | Removes a absl::LogSink as a consumer of logging data. |