Fixed typos
[ACE_TAO.git] / ACE / ace / Log_Msg_NT_Event_Log.h
blobd234923a54b4bba84ba0b333ccf4e62e525879bb
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Log_Msg_NT_Event_Log.h
7 * @author Christopher Kohlhoff <chris@kohlhoff.com>
8 */
9 //=============================================================================
11 #ifndef ACE_LOG_MSG_NT_EVENT_LOG_H
12 #define ACE_LOG_MSG_NT_EVENT_LOG_H
13 #include /**/ "ace/pre.h"
15 #include /**/ "ace/config-all.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
18 # pragma once
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 #if defined ACE_HAS_LOG_MSG_NT_EVENT_LOG
23 #include "ace/Log_Msg_Backend.h"
25 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
27 /**
28 * @class ACE_Log_Msg_NT_Event_Log
30 * @brief Implements an ACE_Log_Msg_Backend that logs to the WinNT system
31 * event log.
33 class ACE_Export ACE_Log_Msg_NT_Event_Log : public ACE_Log_Msg_Backend
35 public:
36 /// Constructor
37 ACE_Log_Msg_NT_Event_Log (void);
39 /// Destructor
40 virtual ~ACE_Log_Msg_NT_Event_Log (void);
42 /// Open a new event log.
43 /**
44 * Initialize the event logging facility.
45 * @param logger_key The name of the calling program. This name is
46 * used in the Source field of the event log. If
47 * it is 0 (no name), the application name as
48 * returned from ACE_Log_Msg::program_name() is used.
50 virtual int open (const ACE_TCHAR *logger_key);
52 /// Reset the backend.
53 virtual int reset (void);
55 /// Close the backend completely.
56 virtual int close (void);
58 /// This is called when we want to log a message.
59 virtual ssize_t log (ACE_Log_Record &log_record);
61 private:
62 HANDLE evlog_handle_;
65 ACE_END_VERSIONED_NAMESPACE_DECL
67 #endif /* ACE_HAS_LOG_MSG_NT_EVENT_LOG */
69 #include /**/ "ace/post.h"
70 #endif /* ACE_LOG_MSG_NT_EVENT_LOG_H */