summaryrefslogtreecommitdiff
path: root/examples/APG/Logging/Callback.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/APG/Logging/Callback.h')
-rw-r--r--examples/APG/Logging/Callback.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/APG/Logging/Callback.h b/examples/APG/Logging/Callback.h
index 264c99bd9c1..86dff9ea826 100644
--- a/examples/APG/Logging/Callback.h
+++ b/examples/APG/Logging/Callback.h
@@ -1,5 +1,8 @@
// $Id$
+#ifndef APG_CALLBACK_H
+#define APG_CALLBACK_H
+
#include "ace/streams.h"
#include "ace/Log_Msg.h"
#include "ace/Log_Msg_Callback.h"
@@ -9,7 +12,14 @@ class Callback : public ACE_Log_Msg_Callback
{
public:
void log (ACE_Log_Record &log_record) {
+# if defined (ACE_LACKS_IOSTREAM_TOTALLY)
+ log_record.print (ACE_TEXT (""), 0, stderr);
+ log_record.print (ACE_TEXT (""), ACE_Log_Msg::VERBOSE, stderr);
+# else
log_record.print (ACE_TEXT (""), 0, cerr);
log_record.print (ACE_TEXT (""), ACE_Log_Msg::VERBOSE, cerr);
+# endif /* ACE_LACKS_IOSTREAM_TOTALLY */
}
};
+
+#endif /* APG_CALLBACK_H */