open62541pp 0.15.0
C++ wrapper of open62541
Loading...
Searching...
No Matches
opcua::LoggerDefault Class Reference

#include <log_default.hpp>

Inheritance diagram for opcua::LoggerDefault:
[legend]

Detailed Description

Logger class that wraps a LogFunction.

Definition at line 18 of file log_default.hpp.

Public Member Functions

 LoggerDefault (LogFunction func)
 
void log (LogLevel level, LogCategory category, std::string_view msg) override
 
- Public Member Functions inherited from opcua::LoggerBase
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
 

Constructor & Destructor Documentation

◆ LoggerDefault()

opcua::LoggerDefault::LoggerDefault ( LogFunction func)
inlineexplicit

Definition at line 20 of file log_default.hpp.

Member Function Documentation

◆ log()

void opcua::LoggerDefault::log ( LogLevel level,
LogCategory category,
std::string_view msg )
inlineoverridevirtual

Implements opcua::LoggerBase.

Definition at line 23 of file log_default.hpp.