ACE 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ACE_Log_Msg_NT_Event_Log Class Reference

Implements an ACE_Log_Msg_Backend that logs to the WinNT system event log. More...

#include <Log_Msg_NT_Event_Log.h>

Inheritance diagram for ACE_Log_Msg_NT_Event_Log:
Inheritance graph
[legend]
Collaboration diagram for ACE_Log_Msg_NT_Event_Log:
Collaboration graph
[legend]

Public Member Functions

 ACE_Log_Msg_NT_Event_Log ()=default
 Constructor.
 
 ~ACE_Log_Msg_NT_Event_Log () override
 Destructor.
 
int open (const ACE_TCHAR *logger_key) override
 Open a new event log.
 
int reset () override
 Reset the backend.
 
int close () override
 Close the backend completely.
 
ssize_t log (ACE_Log_Record &log_record) override
 This is called when we want to log a message.
 
- Public Member Functions inherited from ACE_Log_Msg_Backend
virtual ~ACE_Log_Msg_Backend ()
 No-op virtual destructor.
 

Private Attributes

HANDLE evlog_handle_ {0}
 

Detailed Description

Implements an ACE_Log_Msg_Backend that logs to the WinNT system event log.

Constructor & Destructor Documentation

◆ ACE_Log_Msg_NT_Event_Log()

ACE_Log_Msg_NT_Event_Log::ACE_Log_Msg_NT_Event_Log ( )
default

Constructor.

◆ ~ACE_Log_Msg_NT_Event_Log()

ACE_Log_Msg_NT_Event_Log::~ACE_Log_Msg_NT_Event_Log ( )
override

Destructor.

Member Function Documentation

◆ close()

int ACE_Log_Msg_NT_Event_Log::close ( )
overridevirtual

Close the backend completely.

Implements ACE_Log_Msg_Backend.

◆ log()

ssize_t ACE_Log_Msg_NT_Event_Log::log ( ACE_Log_Record & log_record)
overridevirtual

This is called when we want to log a message.

Implements ACE_Log_Msg_Backend.

◆ open()

int ACE_Log_Msg_NT_Event_Log::open ( const ACE_TCHAR * logger_key)
overridevirtual

Open a new event log.

Initialize the event logging facility.

Parameters
logger_keyThe name of the calling program. This name is used in the Source field of the event log. If it is 0 (no name), the application name as returned from ACE_Log_Msg::program_name() is used.

Implements ACE_Log_Msg_Backend.

◆ reset()

int ACE_Log_Msg_NT_Event_Log::reset ( )
overridevirtual

Reset the backend.

Implements ACE_Log_Msg_Backend.

Member Data Documentation

◆ evlog_handle_

HANDLE ACE_Log_Msg_NT_Event_Log::evlog_handle_ {0}
private

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