OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::Win::LogFile Class Reference

#include <logfile.hpp>

Inheritance diagram for openvpn::Win::LogFile:
[legend]
Collaboration diagram for openvpn::Win::LogFile:
[legend]

Public Types

typedef RCPtr< LogFilePtr
 
- Public Types inherited from openvpn::RC< thread_safe_refcount >
typedef RCPtr< RCPtr
 

Public Member Functions

 LogFile (const std::string &fn, const std::string &sddl_string, bool append)
 
virtual void log (const std::string &str) override
 
- Public Member Functions inherited from openvpn::RC< thread_safe_refcount >
 RC () noexcept=default
 
 RC (const RC &)=delete
 
virtual ~RC ()=default
 
RCoperator= (const RC &)=delete
 
olong use_count () const noexcept
 Delegates call to RCImpl and returns the result.
 

Private Attributes

ScopedHANDLE log_handle
 
Log::Context log_context
 

Additional Inherited Members

- Static Public Member Functions inherited from openvpn::RC< thread_safe_refcount >
static constexpr bool is_thread_safe ()
 Delegates call to RCImpl and returns the result.
 

Detailed Description

Definition at line 19 of file logfile.hpp.

Member Typedef Documentation

◆ Ptr

Definition at line 22 of file logfile.hpp.

Constructor & Destructor Documentation

◆ LogFile()

openvpn::Win::LogFile::LogFile ( const std::string &  fn,
const std::string &  sddl_string,
bool  append 
)
inline

Definition at line 24 of file logfile.hpp.

Member Function Documentation

◆ log()

virtual void openvpn::Win::LogFile::log ( const std::string &  str)
inlineoverridevirtual

Implements openvpn::LogBase.

Definition at line 32 of file logfile.hpp.

Member Data Documentation

◆ log_context

Log::Context openvpn::Win::LogFile::log_context
private

Definition at line 39 of file logfile.hpp.

◆ log_handle

ScopedHANDLE openvpn::Win::LogFile::log_handle
private

Definition at line 38 of file logfile.hpp.


The documentation for this class was generated from the following file: