| VTK
    9.0.1
    | 
Go to the source code of this file.
| Classes | |
| class | vtkLogger | 
| logging framework for use in VTK and in applications based on VTK  More... | |
| struct | vtkLogger::Message | 
| The message structure that is passed to custom callbacks registered using vtkLogger::AddCallback.  More... | |
| class | vtkLogger::LogScopeRAII | 
| Macros | |
| #define | VTK_PRINTF_LIKE(fmtarg, firstvararg) | 
| #define | VTK_FORMAT_STRING_TYPE const char* | 
| #define | vtkVLogF(level, ...) | 
| Add to log given the verbosity level.  More... | |
| #define | vtkLogF(verbosity_name, ...) vtkVLogF(vtkLogger::VERBOSITY_##verbosity_name, __VA_ARGS__) | 
| #define | vtkVLog(level, x) | 
| #define | vtkLog(verbosity_name, x) vtkVLog(vtkLogger::VERBOSITY_##verbosity_name, x) | 
| #define | vtkVLogIfF(level, cond, ...) | 
| Add to log only when the condpasses.  More... | |
| #define | vtkLogIfF(verbosity_name, cond, ...) vtkVLogIfF(vtkLogger::VERBOSITY_##verbosity_name, cond, __VA_ARGS__) | 
| #define | vtkVLogIf(level, cond, x) | 
| #define | vtkLogIf(verbosity_name, cond, x) vtkVLogIf(vtkLogger::VERBOSITY_##verbosity_name, cond, x) | 
| #define | VTKLOG_CONCAT_IMPL(s1, s2) s1##s2 | 
| #define | VTKLOG_CONCAT(s1, s2) VTKLOG_CONCAT_IMPL(s1, s2) | 
| #define | VTKLOG_ANONYMOUS_VARIABLE(x) VTKLOG_CONCAT(x, __LINE__) | 
| #define | vtkVLogScopeF(level, ...) | 
| #define | vtkLogScopeF(verbosity_name, ...) vtkVLogScopeF(vtkLogger::VERBOSITY_##verbosity_name, __VA_ARGS__) | 
| #define | vtkLogScopeFunction(verbosity_name) vtkLogScopeF(verbosity_name, "%s", __func__) | 
| #define | vtkVLogScopeFunction(level) vtkVLogScopeF(level, "%s", __func__) | 
| #define | vtkLogStartScope(verbosity_name, id) vtkLogger::StartScope(vtkLogger::VERBOSITY_##verbosity_name, id, __FILE__, __LINE__) | 
| Explicitly mark start and end of log scope.  More... | |
| #define | vtkLogEndScope(id) vtkLogger::EndScope(id) | 
| #define | vtkLogStartScopeF(verbosity_name, id, ...) vtkLogger::StartScopeF(vtkLogger::VERBOSITY_##verbosity_name, id, __FILE__, __LINE__, __VA_ARGS__) | 
| #define | vtkVLogStartScope(level, id) vtkLogger::StartScope(level, id, __FILE__, __LINE__) | 
| #define | vtkVLogStartScopeF(level, id, ...) vtkLogger::StartScopeF(level, id, __FILE__, __LINE__, __VA_ARGS__) | 
| #define | vtkLogIdentifier(vtkobject) vtkLogger::GetIdentifier(vtkobject).c_str() | 
| Convenience macro to generate an identifier string for any vtkObjectBase subclass.  More... | |
| #define VTK_PRINTF_LIKE | ( | fmtarg, | |
| firstvararg | |||
| ) | 
Definition at line 164 of file vtkLogger.h.
| #define VTK_FORMAT_STRING_TYPE const char* | 
Definition at line 165 of file vtkLogger.h.
| #define vtkVLogF | ( | level, | |
| ... | |||
| ) | 
Add to log given the verbosity level.
The text will be logged when the log verbosity is set to the specified level or higher.
// using printf-style vtkLogF(INFO, "Hello %s", "world!"); vtkVLogF(vtkLogger::VERBOSITY_INFO, "Hello %s", "world!"); // using streams vtkLog(INFO, "Hello " << "world!"); vtkVLog(vtkLogger::VERBOSITY_INFO, << "Hello world!");
Definition at line 428 of file vtkLogger.h.
| #define vtkLogF | ( | verbosity_name, | |
| ... | |||
| ) | vtkVLogF(vtkLogger::VERBOSITY_##verbosity_name, __VA_ARGS__) | 
Definition at line 432 of file vtkLogger.h.
| #define vtkVLog | ( | level, | |
| x | |||
| ) | 
Definition at line 433 of file vtkLogger.h.
| #define vtkLog | ( | verbosity_name, | |
| x | |||
| ) | vtkVLog(vtkLogger::VERBOSITY_##verbosity_name, x) | 
Definition at line 443 of file vtkLogger.h.
| #define vtkVLogIfF | ( | level, | |
| cond, | |||
| ... | |||
| ) | 
Add to log only when the cond passes. 
// using printf-style vtkLogIfF(ERROR, ptr == nullptr, "`ptr` cannot be null!"); vtkVLogIfF(vtkLogger::VERBOSITY_ERROR, ptr == nullptr, "`ptr` cannot be null!"); // using streams vtkLogIf(ERROR, ptr == nullptr, "`ptr` cannot be null!"); vtkVLogIf(vtkLogger::VERBOSITY_ERROR, ptr == nullptr, << "`ptr` cannot be null!");
Definition at line 459 of file vtkLogger.h.
| #define vtkLogIfF | ( | verbosity_name, | |
| cond, | |||
| ... | |||
| ) | vtkVLogIfF(vtkLogger::VERBOSITY_##verbosity_name, cond, __VA_ARGS__) | 
Definition at line 464 of file vtkLogger.h.
| #define vtkVLogIf | ( | level, | |
| cond, | |||
| x | |||
| ) | 
Definition at line 467 of file vtkLogger.h.
| #define vtkLogIf | ( | verbosity_name, | |
| cond, | |||
| x | |||
| ) | vtkVLogIf(vtkLogger::VERBOSITY_##verbosity_name, cond, x) | 
Definition at line 477 of file vtkLogger.h.
| #define VTKLOG_CONCAT_IMPL | ( | s1, | |
| s2 | |||
| ) | s1##s2 | 
Definition at line 480 of file vtkLogger.h.
| #define VTKLOG_CONCAT | ( | s1, | |
| s2 | |||
| ) | VTKLOG_CONCAT_IMPL(s1, s2) | 
Definition at line 481 of file vtkLogger.h.
| #define VTKLOG_ANONYMOUS_VARIABLE | ( | x | ) | VTKLOG_CONCAT(x, __LINE__) | 
Definition at line 482 of file vtkLogger.h.
| #define vtkVLogScopeF | ( | level, | |
| ... | |||
| ) | 
Definition at line 484 of file vtkLogger.h.
| #define vtkLogScopeF | ( | verbosity_name, | |
| ... | |||
| ) | vtkVLogScopeF(vtkLogger::VERBOSITY_##verbosity_name, __VA_ARGS__) | 
Definition at line 489 of file vtkLogger.h.
| #define vtkLogScopeFunction | ( | verbosity_name | ) | vtkLogScopeF(verbosity_name, "%s", __func__) | 
Definition at line 492 of file vtkLogger.h.
| #define vtkVLogScopeFunction | ( | level | ) | vtkVLogScopeF(level, "%s", __func__) | 
Definition at line 493 of file vtkLogger.h.
| #define vtkLogStartScope | ( | verbosity_name, | |
| id | |||
| ) | vtkLogger::StartScope(vtkLogger::VERBOSITY_##verbosity_name, id, __FILE__, __LINE__) | 
Explicitly mark start and end of log scope.
This is useful in cases where the start and end of the scope does not happen within the same C++ scope.
Definition at line 500 of file vtkLogger.h.
| #define vtkLogEndScope | ( | id | ) | vtkLogger::EndScope(id) | 
Definition at line 502 of file vtkLogger.h.
| #define vtkLogStartScopeF | ( | verbosity_name, | |
| id, | |||
| ... | |||
| ) | vtkLogger::StartScopeF(vtkLogger::VERBOSITY_##verbosity_name, id, __FILE__, __LINE__, __VA_ARGS__) | 
Definition at line 504 of file vtkLogger.h.
| #define vtkVLogStartScope | ( | level, | |
| id | |||
| ) | vtkLogger::StartScope(level, id, __FILE__, __LINE__) | 
Definition at line 507 of file vtkLogger.h.
| #define vtkVLogStartScopeF | ( | level, | |
| id, | |||
| ... | |||
| ) | vtkLogger::StartScopeF(level, id, __FILE__, __LINE__, __VA_ARGS__) | 
Definition at line 508 of file vtkLogger.h.
| #define vtkLogIdentifier | ( | vtkobject | ) | vtkLogger::GetIdentifier(vtkobject).c_str() | 
Convenience macro to generate an identifier string for any vtkObjectBase subclass.
Definition at line 517 of file vtkLogger.h.
 1.8.17
 1.8.17