4 #include "ace/Profile_Timer.h"
6 #if !defined (ACE_LACKS_PRAGMA_ONCE)
8 #endif /* ACE_LACKS_PRAGMA_ONCE */
10 #include "ace/INET_Addr.h"
11 #include "ace/SOCK_Dgram_Mcast.h"
13 #ifndef _LOG_WRAPPER_H
14 #define _LOG_WRAPPER_H
18 // Provide a wrapper around sending log messages via IP
25 // = Types of logging messages.
35 int open (const int port
, const char* mcast_addr
);
36 // Subscribe to a given UDP multicast group
38 int log_message (Log_Priority type
, char *message
);
39 // send a string to the logger
41 // = Format of the logging record.
44 u_long sequence_number
;
53 ACE_INET_Addr server_
;
54 // Server address where records are logged.
56 u_long sequence_number_
;
57 // Keep track of the sequence.
60 // One record used for many log messages.
62 ACE_SOCK_Dgram_Mcast logger_
;
66 #endif /* _LOG_WRAPPER_H */