Logging wildcards: allow "***" as synonym for "*=**"
authorPeter D. Barnes, Jr. <barnes26@llnl.gov>
Mon, 28 Oct 2013 15:04:01 -0700
changeset 10229 4da5979086e8
parent 10228 8244f0b3ff1b
child 10230 cb1431abab4a
Logging wildcards: allow "***" as synonym for "*=**"
RELEASE_NOTES
src/core/model/log.cc
--- a/RELEASE_NOTES	Mon Oct 28 14:50:08 2013 -0700
+++ b/RELEASE_NOTES	Mon Oct 28 15:04:01 2013 -0700
@@ -25,7 +25,8 @@
   Use an attribute "EnableBeaconJitter" to enable/disable this feature.
 - a new FixedRoomPositionAllocator helper class is available, it
   allows to generate a random position uniformly distributed in the
-  volume of a chosen room inside a chosen building. 
+  volume of a chosen room inside a chosen building.
+- Logging wildcards:  allow "***" as synonym for "*=**" to turn on all logging.
 
 Bugs fixed
 ----------
--- a/src/core/model/log.cc	Mon Oct 28 14:50:08 2013 -0700
+++ b/src/core/model/log.cc	Mon Oct 28 15:04:01 2013 -0700
@@ -125,7 +125,7 @@
       if (equal == std::string::npos)
         {
           component = tmp;
-          if (component == myName || component == "*")
+          if (component == myName || component == "*" || component == "***")
             {
               int level = LOG_LEVEL_ALL | LOG_PREFIX_ALL;
               Enable ((enum LogLevel)level);
@@ -485,7 +485,7 @@
         {
           // ie no '=' characters found 
           component = tmp;
-          if (ComponentExists(component) || component == "*")
+          if (ComponentExists(component) || component == "*" || component == "***")
             {
               return;
             }