summaryrefslogtreecommitdiff
path: root/netsvcs/clients/Logger/indirect_logging.cpp
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-12-30 06:50:29 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-12-30 06:50:29 +0000
commita4a7690c336d4c8a16b3041c86d501ba38226e96 (patch)
tree9e9f93a98edd2591453f092d178ad29a1c5fb519 /netsvcs/clients/Logger/indirect_logging.cpp
parenta5c4d8047ab58df5c45092e18ae503ad40518f0e (diff)
downloadATCD-unlabeled-4.1.2.tar.gz
This commit was manufactured by cvs2svn to create branchunlabeled-4.1.2
'unlabeled-4.1.2'.
Diffstat (limited to 'netsvcs/clients/Logger/indirect_logging.cpp')
-rw-r--r--netsvcs/clients/Logger/indirect_logging.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/netsvcs/clients/Logger/indirect_logging.cpp b/netsvcs/clients/Logger/indirect_logging.cpp
deleted file mode 100644
index eabf26cd851..00000000000
--- a/netsvcs/clients/Logger/indirect_logging.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-// $Id$
-
-// This is a simple test that sends logging records to the Client
-// Logging Daemon running on the localhost. This daemon then forwards
-// them to the Server Logging Daemon. If there is no Server Logging
-// Daemon, the logging records will be written to stderr.
-
-#include "ace/OS.h"
-
-int
-main (int argc, char *argv[])
-{
- char *prog_name = argv[0];
- int iterations = argc < 2 ? 10 : ACE_OS::atoi (argv[1]);
- char *logger_key = argc < 3 ? ACE_DEFAULT_RENDEZVOUS : argv[2];
-
- ACE_OS::srand ((u_int) ACE_OS::time (0));
-
- ACE_LOG_MSG->open (prog_name, ACE_Log_Msg::LOGGER, logger_key);
-
- ACE_DEBUG ((LM_STARTUP, "starting up the test\n"));
-
- for (int i = 0; i < iterations; i++)
- {
- int priority = ACE_OS::rand () % int (LM_MAX);
- ACE_POW (priority);
- ACE_DEBUG ((ACE_Log_Priority (priority),
- "random message %d...\n",
- priority));
- }
-
- ACE_DEBUG ((LM_SHUTDOWN, "closing down the test\n"));
- return 0;
-}