MCPcopy Create free account
hub / github.com/Kitware/VTK / GetObjectManagerLogVerbosity

Method GetObjectManagerLogVerbosity

Serialization/Manager/vtkObjectManager.cxx:918–937  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

916
917//------------------------------------------------------------------------------
918vtkLogger::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}
938VTK_ABI_NAMESPACE_END

Callers 9

RegisterStateMethod · 0.95
UnRegisterStateMethod · 0.95
GetBlobHashesMethod · 0.95
PruneUnusedStatesMethod · 0.95
PruneUnusedObjectsMethod · 0.95
UpdateObjectFromStateMethod · 0.95
UpdateStateFromObjectMethod · 0.95
vtkSessionStartEventLoopFunction · 0.80
vtkSessionStopEventLoopFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected