Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / netsvcs / lib / Server_Logging_Handler.h
blob589f0a6d68d85ff15abf23843d9eacb537ab39c2
1 /* -*- C++ -*- */
3 //=============================================================================
4 /**
5 * @file Server_Logging_Handler.h
7 * @author Doug Schmidt and Per Andersson <Per.Andersson@hfera.ericsson.se>
8 */
9 //=============================================================================
12 #ifndef ACE_SERVER_LOGGING_HANDLER_H
13 #define ACE_SERVER_LOGGING_HANDLER_H
15 #include "Log_Message_Receiver.h"
16 #include "Server_Logging_Handler_T.h"
17 #include "ace/svc_export.h"
19 // Typedefs for Logging Handlers & acceptors using a static type based
20 // log message receivers.
22 // Synched and NULL synched message receivers
23 typedef Static_Log_Message_Receiver<ACE_NULL_SYNCH>
24 Null_Synch_Static_Receiver;
25 typedef Static_Log_Message_Receiver<ACE_LOGGER_SYNCH>
26 Synch_Static_Receiver;
28 // NULL synched logging handler
29 typedef ACE_Server_Logging_Handler<Null_Synch_Static_Receiver>
30 Null_Synch_Logging_Handler_Static_Receiver;
32 // synched logging handlers
33 typedef ACE_Server_Logging_Handler<Synch_Static_Receiver>
34 Synch_Logging_Handler_Static_Receiver;
35 typedef ACE_Thr_Server_Logging_Handler<Synch_Static_Receiver>
36 Synch_Thr_Logging_Handler_Static_Receiver;
38 // NULL synched logging acceptor
39 typedef ACE_Server_Logging_Acceptor_T<Null_Synch_Logging_Handler_Static_Receiver,
40 Null_Synch_Static_Receiver,
41 ACE_Schedule_All_Reactive_Strategy<Null_Synch_Logging_Handler_Static_Receiver> >
42 Null_Synch_Logging_Handler_Static_Receiver_Acceptor;
44 // NULL synched logging acceptors
45 typedef ACE_Server_Logging_Acceptor_T<Synch_Logging_Handler_Static_Receiver,
46 Synch_Static_Receiver,
47 ACE_Schedule_All_Reactive_Strategy<Synch_Logging_Handler_Static_Receiver> >
48 Synch_Logging_Handler_Static_Receiver_Acceptor;
50 typedef ACE_Server_Logging_Acceptor_T<Synch_Thr_Logging_Handler_Static_Receiver,
51 Synch_Static_Receiver,
52 ACE_Schedule_All_Threaded_Strategy<Synch_Thr_Logging_Handler_Static_Receiver> >
53 Synch_Thr_Logging_Handler_Static_Receiver_Acceptor;
55 // typedefs for Logging Handlers & acceptors using a instance based
56 // log message receivers.
58 // Synched message receivers
59 typedef Log_Message_Receiver<ACE_LOGGER_SYNCH>
60 Synch_Receiver;
62 // synched logging handlers
63 typedef ACE_Server_Logging_Handler<Synch_Receiver>
64 Synch_Logging_Handler_Receiver;
65 typedef ACE_Thr_Server_Logging_Handler<Synch_Receiver>
66 Synch_Thr_Logging_Handler_Receiver;
68 // synched logging acceptors
69 typedef ACE_Server_Logging_Acceptor_T<Synch_Logging_Handler_Receiver,
70 Synch_Receiver,
71 ACE_Schedule_All_Reactive_Strategy<Synch_Logging_Handler_Receiver> >
72 Synch_Logging_Handler_Receiver_Acceptor;
74 typedef ACE_Server_Logging_Acceptor_T<Synch_Thr_Logging_Handler_Receiver,
75 Synch_Receiver,
76 ACE_Schedule_All_Threaded_Strategy<Synch_Thr_Logging_Handler_Receiver> >
77 Synch_Thr_Logging_Handler_Receiver_Acceptor;
80 // Define external acceptors
82 // Acceptors that use static/type based log message receiver.
83 typedef Null_Synch_Logging_Handler_Static_Receiver_Acceptor
84 ACE_Server_Logging_Acceptor;
85 typedef Synch_Thr_Logging_Handler_Static_Receiver_Acceptor
86 ACE_Thr_Server_Logging_Acceptor;
88 ACE_SVC_FACTORY_DECLARE (ACE_Server_Logging_Acceptor)
89 ACE_SVC_FACTORY_DECLARE (ACE_Thr_Server_Logging_Acceptor)
91 #endif /* ACE_SERVER_LOGGING_HANDLER_H */