110 virtual bool init(std::string_view app_name) = 0;
125 virtual bool log(
int level, std::string_view str) = 0;
LoggerPluginInterface()=default
virtual ~LoggerPluginInterface()=default
virtual bool init(std::string_view app_name)=0
Initialises the logger backend for the given application name.
virtual bool log(int level, std::string_view str)=0
Writes a single log entry to the backend.
#define VLINK_DISALLOW_COPY_AND_ASSIGN(classname)
Deletes the copy constructor and copy-assignment operator of classname.
定义 macros.h:184
Type-safe dynamic plugin loader with version checking and lifecycle management.
#define VLINK_PLUGIN_REGISTER(InterfaceType)
Macro to register a plugin, automatically deriving its ID from the interface type name.
定义 plugin.h:343