Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Log_Msg_Backend Class Reference

Define the interface for ACE_Log_Msg backend strategies. More...

#include <Log_Msg_Backend.h>

Inheritance diagram for ACE_Log_Msg_Backend:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual ~ACE_Log_Msg_Backend (void)
 No-op virtual destructor. More...

virtual int open (const ACE_TCHAR *logger_key)=0
 Open a new connection. More...

virtual int reset (void)=0
virtual int close (void)=0
 Close the backend completely. More...

virtual int log (ACE_Log_Record &log_record)=0
 Backend routine. This is called when we want to log a message. Since this routine is pure virtual, it must be overwritten by the subclass. More...


Detailed Description

Define the interface for ACE_Log_Msg backend strategies.

The ACE_Log_Msg class can log to multiple backend strategies, for example, some send messages to a remote logger, others dump to a file, or simply to stderr. In the future we could define interfaces that log to the syslog daemon (on UNIX), the Event log (on NT) a temporary ring buffer, etc.

Definition at line 37 of file Log_Msg_Backend.h.


Constructor & Destructor Documentation

ACE_Log_Msg_Backend::~ACE_Log_Msg_Backend void    [virtual]
 

No-op virtual destructor.

Definition at line 8 of file Log_Msg_Backend.cpp.

00009 {
00010 }


Member Function Documentation

virtual int ACE_Log_Msg_Backend::close void    [pure virtual]
 

Close the backend completely.

Implemented in ACE_Log_Msg_IPC.

Referenced by ACE_Log_Msg::~ACE_Log_Msg.

virtual int ACE_Log_Msg_Backend::log ACE_Log_Record   log_record [pure virtual]
 

Backend routine. This is called when we want to log a message. Since this routine is pure virtual, it must be overwritten by the subclass.

Implemented in ACE_Log_Msg_IPC.

Referenced by ACE_Log_Msg::log.

virtual int ACE_Log_Msg_Backend::open const ACE_TCHAR   logger_key [pure virtual]
 

Open a new connection.

Implemented in ACE_Log_Msg_IPC.

Referenced by ACE_Log_Msg::open.

virtual int ACE_Log_Msg_Backend::reset void    [pure virtual]
 

Implemented in ACE_Log_Msg_IPC.

Referenced by ACE_Log_Msg::open.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:49:32 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002