| 1962 | } |
| 1963 | |
| 1964 | void VRegistry::setFromArgs(const base::utils::CommandLineArgs* commandLineArgs) { |
| 1965 | if (commandLineArgs->hasParam("-v") || commandLineArgs->hasParam("--verbose") || |
| 1966 | commandLineArgs->hasParam("-V") || commandLineArgs->hasParam("--VERBOSE")) { |
| 1967 | setLevel(base::consts::kMaxVerboseLevel); |
| 1968 | } else if (commandLineArgs->hasParamWithValue("--v")) { |
| 1969 | setLevel(static_cast<base::type::VerboseLevel>(atoi(commandLineArgs->getParamValue("--v")))); |
| 1970 | } else if (commandLineArgs->hasParamWithValue("--V")) { |
| 1971 | setLevel(static_cast<base::type::VerboseLevel>(atoi(commandLineArgs->getParamValue("--V")))); |
| 1972 | } else if ((commandLineArgs->hasParamWithValue("-vmodule")) && vModulesEnabled()) { |
| 1973 | setModules(commandLineArgs->getParamValue("-vmodule")); |
| 1974 | } else if (commandLineArgs->hasParamWithValue("-VMODULE") && vModulesEnabled()) { |
| 1975 | setModules(commandLineArgs->getParamValue("-VMODULE")); |
| 1976 | } |
| 1977 | } |
| 1978 | |
| 1979 | #if !defined(ELPP_DEFAULT_LOGGING_FLAGS) |
| 1980 | # define ELPP_DEFAULT_LOGGING_FLAGS 0x0 |
no test coverage detected