2#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGERS_ILOGSUBSCRIBER_HPP_INCLUDED
3#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGERS_ILOGSUBSCRIBER_HPP_INCLUDED
Optional read-only interface for log backends that support querying stored records.
Optional interface for backends that can notify callers when a record is successfully written.
std::function< void(const LogRecordSnapshot &)> Callback
virtual bool remove_log_callback(uint64_t callback_id)=0
Unregisters a previously added callback.
virtual ~ILogSubscriber()=default
virtual uint64_t add_log_callback(Callback callback)=0
Registers a callback to be invoked after each successfully written record.
The primary namespace for the LogIt++ library.
Common owning snapshot of a stored log record.