OpenVPN 3 Core Library
Loading...
Searching...
No Matches
logthread_macros.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OPENVPN_LOG(args)
 
#define OPENVPN_LOG_NTNL(args)
 
#define OPENVPN_LOG_STRING(str)
 

Macro Definition Documentation

◆ OPENVPN_LOG

#define OPENVPN_LOG (   args)
Value:
do \
{ \
{ \
std::ostringstream _ovpn_log; \
_ovpn_log << args << '\n'; \
(openvpn::Log::Context::obj()->log(OPENVPN_LOG_INFO(_ovpn_log.str()))); \
} \
} while (0)
#define OPENVPN_LOG_INFO
Definition ovpncli.cpp:67
static OPENVPN_LOG_CLASS * obj()

Definition at line 24 of file logthread_macros.hpp.

◆ OPENVPN_LOG_NTNL

#define OPENVPN_LOG_NTNL (   args)
Value:
do \
{ \
{ \
std::ostringstream _ovpn_log; \
_ovpn_log << args; \
(openvpn::Log::Context::obj()->log(OPENVPN_LOG_INFO(_ovpn_log.str()))); \
} \
} while (0)

Definition at line 36 of file logthread_macros.hpp.

◆ OPENVPN_LOG_STRING

#define OPENVPN_LOG_STRING (   str)
Value:
do \
{ \
{ \
} \
} while (0)
os<< "Session Name: "<< tbc-> session_name<< '\n';os<< "Layer: "<< tbc-> layer str()<< '\n'

Definition at line 47 of file logthread_macros.hpp.