Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / APG / Logging / Callback.h
blob3769f64e786e48851b09f50e7734ec1c327e823b
1 #ifndef APG_CALLBACK_H
2 #define APG_CALLBACK_H
4 #include "ace/streams.h"
5 #include "ace/Log_Msg.h"
6 #include "ace/Log_Msg_Callback.h"
7 #include "ace/Log_Record.h"
9 class Callback : public ACE_Log_Msg_Callback
11 public:
12 void log (ACE_Log_Record &log_record) {
13 # if defined (ACE_LACKS_IOSTREAM_TOTALLY)
14 log_record.print (ACE_TEXT (""), 0, stderr);
15 log_record.print (ACE_TEXT (""), ACE_Log_Msg::VERBOSE, stderr);
16 # else
17 log_record.print (ACE_TEXT (""), 0, cerr);
18 log_record.print (ACE_TEXT (""), ACE_Log_Msg::VERBOSE, cerr);
19 # endif /* ACE_LACKS_IOSTREAM_TOTALLY */
23 #endif /* APG_CALLBACK_H */