------------------------------------------------------------------------------
| 916 | |
| 917 | //------------------------------------------------------------------------------ |
| 918 | vtkLogger::Verbosity vtkObjectManager::GetObjectManagerLogVerbosity() |
| 919 | { |
| 920 | // initialize the log verbosity if it is invalid. |
| 921 | if (this->ObjectManagerLogVerbosity == vtkLogger::VERBOSITY_INVALID) |
| 922 | { |
| 923 | this->ObjectManagerLogVerbosity = vtkLogger::VERBOSITY_TRACE; |
| 924 | // Find an environment variable that specifies logger verbosity |
| 925 | const char* verbosityKey = "VTK_OBJECT_MANAGER_LOG_VERBOSITY"; |
| 926 | if (vtksys::SystemTools::HasEnv(verbosityKey)) |
| 927 | { |
| 928 | const char* verbosityCStr = vtksys::SystemTools::GetEnv(verbosityKey); |
| 929 | const auto verbosity = vtkLogger::ConvertToVerbosity(verbosityCStr); |
| 930 | if (verbosity > vtkLogger::VERBOSITY_INVALID) |
| 931 | { |
| 932 | this->ObjectManagerLogVerbosity = verbosity; |
| 933 | } |
| 934 | } |
| 935 | } |
| 936 | return this->ObjectManagerLogVerbosity; |
| 937 | } |
| 938 | VTK_ABI_NAMESPACE_END |
no outgoing calls
no test coverage detected