open62541pp 0.15.0
C++ wrapper of open62541
Loading...
Searching...
No Matches
opcua::LoggerBase Class Referenceabstract

#include <log.hpp>

Inheritance diagram for opcua::LoggerBase:
[legend]

Detailed Description

Logger base class.

Custom logger can be implemented by deriving from this class and overwriting the log function.

Definition at line 42 of file log.hpp.

Public Member Functions

virtual void log (LogLevel level, LogCategory category, std::string_view msg)=0
 
UA_Logger create () override
 
void clear (UA_Logger &native) noexcept override
 
- Public Member Functions inherited from opcua::PluginAdapter< UA_Logger >
 PluginAdapter ()=default
 
 PluginAdapter (const PluginAdapter &)=default
 
 PluginAdapter (PluginAdapter &&) noexcept=default
 
virtual ~PluginAdapter ()=default
 
PluginAdapteroperator= (const PluginAdapter &)=default
 
PluginAdapteroperator= (PluginAdapter &&) noexcept=default
 
virtual void clear (UA_Logger *&plugin) noexcept
 

Additional Inherited Members

- Public Types inherited from opcua::PluginAdapter< UA_Logger >
using PluginType
 

Member Function Documentation

◆ log()

virtual void opcua::LoggerBase::log ( LogLevel level,
LogCategory category,
std::string_view msg )
pure virtual

Implemented in opcua::LoggerDefault.

◆ create()

UA_Logger opcua::LoggerBase::create ( )
overridevirtual

◆ clear()

void opcua::LoggerBase::clear ( UA_Logger & native)
overridevirtualnoexcept