summaryrefslogtreecommitdiff
path: root/ACE/examples/APG/Logging/Simple1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/examples/APG/Logging/Simple1.cpp')
-rw-r--r--ACE/examples/APG/Logging/Simple1.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/ACE/examples/APG/Logging/Simple1.cpp b/ACE/examples/APG/Logging/Simple1.cpp
new file mode 100644
index 00000000000..cf7a12e410b
--- /dev/null
+++ b/ACE/examples/APG/Logging/Simple1.cpp
@@ -0,0 +1,23 @@
+// $Id$
+
+#include "ace/Log_Msg.h"
+
+void foo (void);
+
+int ACE_TMAIN (int, ACE_TCHAR *[])
+{
+ ACE_TRACE("main");
+
+ ACE_DEBUG ((LM_INFO, ACE_TEXT ("%IHi Mom\n")));
+ foo();
+ ACE_DEBUG ((LM_INFO, ACE_TEXT ("%IGoodnight\n")));
+
+ return 0;
+}
+
+void foo (void)
+{
+ ACE_TRACE ("foo");
+
+ ACE_DEBUG ((LM_INFO, ACE_TEXT ("%IHowdy Pardner\n")));
+}