diff options
Diffstat (limited to 'examples/APG/Logging/Use_Multiple_Sinks.cpp')
-rw-r--r-- | examples/APG/Logging/Use_Multiple_Sinks.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/examples/APG/Logging/Use_Multiple_Sinks.cpp b/examples/APG/Logging/Use_Multiple_Sinks.cpp deleted file mode 100644 index 468fc09d838..00000000000 --- a/examples/APG/Logging/Use_Multiple_Sinks.cpp +++ /dev/null @@ -1,36 +0,0 @@ -// $Id$ - -#include "ace/Log_Msg.h" -#include "ace/streams.h" -#if (defined (_MSC_VER) && (_MSC_VER >= 1200) && (_MSC_VER < 1300)) -#include <fstream> -#endif -int ACE_TMAIN (int, ACE_TCHAR *argv[]) -{ - // Output to default destination (stderr) - ACE_LOG_MSG->open (argv[0]); - - ACE_TRACE (ACE_TEXT ("main")); - - ACE_OSTREAM_TYPE *output = - (ACE_OSTREAM_TYPE *) new std::ofstream ("ostream.output.test"); - - ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("%IThis will go to STDERR\n"))); - - ACE_LOG_MSG->open - (argv[0], ACE_Log_Msg::SYSLOG, ACE_TEXT ("syslogTest")); - ACE_LOG_MSG->set_flags (ACE_Log_Msg::STDERR); - ACE_DEBUG - ((LM_DEBUG, ACE_TEXT ("%IThis goes to STDERR & syslog\n"))); - - ACE_LOG_MSG->msg_ostream (output, 0); - ACE_LOG_MSG->set_flags (ACE_Log_Msg::OSTREAM); - ACE_DEBUG ((LM_DEBUG, - ACE_TEXT ("%IThis will go to STDERR, ") - ACE_TEXT ("syslog & an ostream\n"))); - - ACE_LOG_MSG->clr_flags (ACE_Log_Msg::OSTREAM); - delete output; - - return 0; -} |