OpenVPN 3 Core Library
Loading...
Searching...
No Matches
logdatetime.hpp File Reference
#include <iostream>
#include <openvpn/time/timestr.hpp>
Include dependency graph for logdatetime.hpp:

Go to the source code of this file.

Classes

struct  openvpn::Log::Context
 Scoped RAII for the global_log pointer. More...
 
class  openvpn::Log::Context::Wrapper
 Argument to construct a Context in a different thread. More...
 

Namespaces

namespace  openvpn
 Support deferred server-side state creation when client connects.
 
namespace  openvpn::Log
 

Macros

#define OPENVPN_LOG_STREAM   std::cout
 
#define OPENVPN_LOG(args)   OPENVPN_LOG_STREAM << date_time() << ' ' << args << std::endl
 
#define OPENVPN_LOG_NTNL(args)   OPENVPN_LOG_STREAM << date_time() << ' ' << args
 
#define OPENVPN_LOG_STRING(str)   OPENVPN_LOG_STREAM << date_time() << ' ' << (str)
 

Macro Definition Documentation

◆ OPENVPN_LOG

#define OPENVPN_LOG (   args)    OPENVPN_LOG_STREAM << date_time() << ' ' << args << std::endl

Definition at line 23 of file logdatetime.hpp.

◆ OPENVPN_LOG_NTNL

#define OPENVPN_LOG_NTNL (   args)    OPENVPN_LOG_STREAM << date_time() << ' ' << args

Definition at line 26 of file logdatetime.hpp.

◆ OPENVPN_LOG_STREAM

#define OPENVPN_LOG_STREAM   std::cout

Definition at line 20 of file logdatetime.hpp.

◆ OPENVPN_LOG_STRING

#define OPENVPN_LOG_STRING (   str)    OPENVPN_LOG_STREAM << date_time() << ' ' << (str)

Definition at line 28 of file logdatetime.hpp.