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

@@ -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;
}