qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject svn commit: r592956 - in /incubator/qpid/trunk/qpid/cpp/src: qpid/log/Options.cpp tests/logging.cpp tests/quick_perftest tests/start_broker tests/start_cluster
Date Wed, 07 Nov 2007 23:34:35 GMT
Author: aconway
Date: Wed Nov  7 15:34:34 2007
New Revision: 592956

URL: http://svn.apache.org/viewvc?rev=592956&view=rev
Log:

Change options --log.foo to --log-foo for consistency.

Modified:
    incubator/qpid/trunk/qpid/cpp/src/qpid/log/Options.cpp
    incubator/qpid/trunk/qpid/cpp/src/tests/logging.cpp
    incubator/qpid/trunk/qpid/cpp/src/tests/quick_perftest
    incubator/qpid/trunk/qpid/cpp/src/tests/start_broker
    incubator/qpid/trunk/qpid/cpp/src/tests/start_cluster

Modified: incubator/qpid/trunk/qpid/cpp/src/qpid/log/Options.cpp
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/qpid/log/Options.cpp?rev=592956&r1=592955&r2=592956&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/qpid/log/Options.cpp (original)
+++ incubator/qpid/trunk/qpid/cpp/src/qpid/log/Options.cpp Wed Nov  7 15:34:34 2007
@@ -36,30 +36,30 @@
     for (int i = 1; i < LevelTraits::COUNT; ++i)
         levels << " " << LevelTraits::name(Level(i));
     addOptions()
-        ("log.output", optValue(outputs, "FILE"),
+        ("log-output", optValue(outputs, "FILE"),
          "Send log output to FILE. "
          "FILE can be a file name or one of the special values:\n"
          "stderr, stdout, syslog")
         ("trace,t", optValue(trace), "Enables all logging" )
-        ("log.enable", optValue(selectors, "RULE"),
+        ("log-enable", optValue(selectors, "RULE"),
          ("Enables logging for selected levels and components. " 
          "RULE is in the form 'LEVEL[+][:COMPONENT]' "
          "Levels are one of: \n\t "+levels.str()+"\n"
          "For example:\n"
-         "\t'--log.enable warning+' "
+         "\t'--log-enable warning+' "
          "logs all warning, error and critical messages.\n"
-         "\t'--log.enable debug:framing' "
+         "\t'--log-enable debug:framing' "
           "logs debug messages from the framing component. "
          "This option can be used multiple times").c_str())
-        ("log.time", optValue(time, "yes|no"),
+        ("log-time", optValue(time, "yes|no"),
          "Include time in log messages")
-        ("log.level", optValue(level,"yes|no"),
+        ("log-level", optValue(level,"yes|no"),
          "Include severity level in log messages")
-        ("log.source", optValue(source,"yes|no"),
+        ("log-source", optValue(source,"yes|no"),
          "Include source file:line in log messages")
-        ("log.thread", optValue(thread,"yes|no"),
+        ("log-thread", optValue(thread,"yes|no"),
          "Include thread ID in log messages")
-        ("log.function", optValue(function,"yes|no"),
+        ("log-function", optValue(function,"yes|no"),
          "Include function signature in log messages");
 }        
         

Modified: incubator/qpid/trunk/qpid/cpp/src/tests/logging.cpp
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/tests/logging.cpp?rev=592956&r1=592955&r2=592956&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/tests/logging.cpp (original)
+++ incubator/qpid/trunk/qpid/cpp/src/tests/logging.cpp Wed Nov  7 15:34:34 2007
@@ -264,15 +264,15 @@
 BOOST_AUTO_TEST_CASE(testOptionsParse) {
     char* argv[]={
         0,
-        "--log.enable", "error+:foo",
-        "--log.enable", "debug:bar",
-        "--log.enable", "info",
-        "--log.output", "x",
-        "--log.output", "y",
-        "--log.level", "yes",
-        "--log.source", "1",
-        "--log.thread", "true",
-        "--log.function", "YES"
+        "--log-enable", "error+:foo",
+        "--log-enable", "debug:bar",
+        "--log-enable", "info",
+        "--log-output", "x",
+        "--log-output", "y",
+        "--log-level", "yes",
+        "--log-source", "1",
+        "--log-thread", "true",
+        "--log-function", "YES"
     };
     qpid::log::Options opts;
     opts.parse(ARGC(argv), argv);
@@ -299,9 +299,9 @@
 BOOST_AUTO_TEST_CASE(testSelectorFromOptions) {
     char* argv[]={
         0,
-        "--log.enable", "error+:foo",
-        "--log.enable", "debug:bar",
-        "--log.enable", "info"
+        "--log-enable", "error+:foo",
+        "--log-enable", "debug:bar",
+        "--log-enable", "info"
     };
     qpid::log::Options opts;
     opts.parse(ARGC(argv), argv);
@@ -322,10 +322,10 @@
         BOOST_CHECK_EQUAL(Logger::TIME|Logger::LEVEL, l.format(opts));
         char* argv[]={
             0,
-            "--log.time", "no", 
-            "--log.level", "no",
-            "--log.source", "1",
-            "--log.thread",  "1"
+            "--log-time", "no", 
+            "--log-level", "no",
+            "--log-source", "1",
+            "--log-thread",  "1"
         };
         opts.parse(ARGC(argv), argv);
         BOOST_CHECK_EQUAL(
@@ -335,10 +335,10 @@
         Options opts;           // Clear.
         char* argv[]={
             0,
-            "--log.level", "no",
-            "--log.thread", "true",
-            "--log.function", "YES",
-            "--log.time", "YES"
+            "--log-level", "no",
+            "--log-thread", "true",
+            "--log-function", "YES",
+            "--log-time", "YES"
         };
         opts.parse(ARGC(argv), argv);
         BOOST_CHECK_EQUAL(
@@ -353,10 +353,10 @@
     Options opts;
     char* argv[]={
         0,
-        "--log.time", "no", 
-        "--log.source", "yes",
-        "--log.output", "logging.tmp",
-        "--log.enable", "critical"
+        "--log-time", "no", 
+        "--log-source", "yes",
+        "--log-output", "logging.tmp",
+        "--log-enable", "critical"
     };
     opts.parse(ARGC(argv), argv);
     l.configure(opts, "test");

Modified: incubator/qpid/trunk/qpid/cpp/src/tests/quick_perftest
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/tests/quick_perftest?rev=592956&r1=592955&r2=592956&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/tests/quick_perftest (original)
+++ incubator/qpid/trunk/qpid/cpp/src/tests/quick_perftest Wed Nov  7 15:34:34 2007
@@ -1,2 +1,2 @@
 #!/bin/sh
-exec `dirname $0`/run_test ./perftest --listen --publish --count 1000
+exec `dirname $0`/run_test ./perftest --count 1000

Modified: incubator/qpid/trunk/qpid/cpp/src/tests/start_broker
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/tests/start_broker?rev=592956&r1=592955&r2=592956&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/tests/start_broker (original)
+++ incubator/qpid/trunk/qpid/cpp/src/tests/start_broker Wed Nov  7 15:34:34 2007
@@ -1,4 +1,4 @@
 #!/bin/sh
 rm -f qpidd.vglog qpidd.log
 test -n "$VALGRIND" && VALGRIND="$VALGRIND --log-file-exactly=qpidd.vglog --"
-exec libtool --mode=execute $VALGRIND ../qpidd --daemon --port 0 --log.output qpidd.log "$@"
> qpidd.port
+exec libtool --mode=execute $VALGRIND ../qpidd --daemon --port 0 --log-output qpidd.log "$@"
> qpidd.port

Modified: incubator/qpid/trunk/qpid/cpp/src/tests/start_cluster
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/tests/start_cluster?rev=592956&r1=592955&r2=592956&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/tests/start_cluster (original)
+++ incubator/qpid/trunk/qpid/cpp/src/tests/start_cluster Wed Nov  7 15:34:34 2007
@@ -12,7 +12,7 @@
 OPTS=$*
 CLUSTER=`whoami`		# Cluster name=user name, avoid clashes.
 for (( i=0; i<SIZE; ++i )); do
-    PORT=`../qpidd -dp0 --log.output=cluster$i.log --cluster $CLUSTER $OPTS` || exit 1
+    PORT=`../qpidd -dp0 --log-output=cluster$i.log --cluster $CLUSTER $OPTS` || exit 1
     echo $PORT >> cluster.ports
 done
     



Mime
View raw message