 |
OpenVPN 3 Core Library
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
20#ifndef OPENVPN_LOG_INFO
21#error OPENVPN_LOG_INFO must be defined
24#define OPENVPN_LOG(args) \
27 if (openvpn::Log::Context::defined()) \
29 std::ostringstream _ovpn_log; \
30 _ovpn_log << args << '\n'; \
31 (openvpn::Log::Context::obj()->log(OPENVPN_LOG_INFO(_ovpn_log.str()))); \
36#define OPENVPN_LOG_NTNL(args) \
39 if (openvpn::Log::Context::defined()) \
41 std::ostringstream _ovpn_log; \
43 (openvpn::Log::Context::obj()->log(OPENVPN_LOG_INFO(_ovpn_log.str()))); \
47#define OPENVPN_LOG_STRING(str) \
50 if (openvpn::Log::Context::defined()) \
52 (openvpn::Log::Context::obj()->log(OPENVPN_LOG_INFO(str))); \