00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 #ifndef ACE_LOG_MSG_UNIX_SYSLOG_H
00014 #define ACE_LOG_MSG_UNIX_SYSLOG_H
00015 #include  "ace/pre.h"
00016 
00017 #include "ace/config-all.h"
00018 
00019 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00020 # pragma once
00021 #endif 
00022 
00023 #if !defined (ACE_LACKS_UNIX_SYSLOG)
00024 
00025 #include "ace/Log_Msg_Backend.h"
00026 
00027 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00028 
00029 
00030 
00031 
00032 
00033 
00034 
00035 class ACE_Export ACE_Log_Msg_UNIX_Syslog : public ACE_Log_Msg_Backend
00036 {
00037 public:
00038 
00039   ACE_Log_Msg_UNIX_Syslog (void);
00040 
00041 
00042   virtual ~ACE_Log_Msg_UNIX_Syslog (void);
00043 
00044 
00045 
00046 
00047 
00048 
00049 
00050 
00051 
00052   virtual int open (const ACE_TCHAR *logger_key);
00053 
00054 
00055   virtual int reset (void);
00056 
00057 
00058   virtual int close (void);
00059 
00060 
00061   virtual int log (ACE_Log_Record &log_record);
00062 
00063 private:
00064 
00065   int convert_log_priority (ACE_UINT32 lm_priority);
00066 
00067 
00068   int convert_log_mask (int lm_mask);
00069 };
00070 
00071 ACE_END_VERSIONED_NAMESPACE_DECL
00072 
00073 #endif 
00074 
00075 #include  "ace/post.h"
00076 #endif