84 #include <string_view>
114 virtual bool init(std::string_view app_name) = 0;
127 virtual bool log(
int level, std::string_view str) = 0;
Pure-virtual interface that every shared-library logger backend implements.
Definition: logger_plugin_interface.h:99
LoggerPluginInterface()=default
virtual ~LoggerPluginInterface()=default
virtual bool init(std::string_view app_name)=0
Initialises the backend immediately after the plugin instance is constructed.
virtual bool log(int level, std::string_view str)=0
Writes a single record to the backend.
#define VLINK_DISALLOW_COPY_AND_ASSIGN(classname)
Deletes the copy constructor and copy-assignment operator of classname.
Definition: macros.h:174
Strongly-typed shared-library plugin loader with ID and version verification.
#define VLINK_PLUGIN_REGISTER(InterfaceType)
Declares a plugin's identity from the demangled name of its abstract interface.
Definition: plugin.h:345