Logging wildcards: allow "***" as synonym for "*=**"

This commit is contained in:
Peter D. Barnes, Jr.
2013-10-28 15:04:01 -07:00
parent f6e90ca97a
commit 4e6c8358f8
2 changed files with 4 additions and 3 deletions

View File

@@ -25,7 +25,8 @@ New user-visible features
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
----------

View File

@@ -125,7 +125,7 @@ LogComponent::EnvVarCheck (const std::string & name)
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 @@ static void CheckEnvironmentVariables (void)
{
// ie no '=' characters found
component = tmp;
if (ComponentExists(component) || component == "*")
if (ComponentExists(component) || component == "*" || component == "***")
{
return;
}