VTK
9.1.0
|
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 | 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 | vtkLogIdentifier(vtkobject) vtkLogger::GetIdentifier(vtkobject).c_str() |
Convenience macro to generate an identifier string for any vtkObjectBase subclass. | |
#define | vtkVLogF(level, ...) |
Add to log given the verbosity level. | |
#define | vtkLogF(verbosity_name, ...) vtkVLogF(vtkLogger::VERBOSITY_##verbosity_name, __VA_ARGS__) |
Add to log given the verbosity level. | |
#define | vtkVLog(level, x) |
Add to log given the verbosity level. | |
#define | vtkLog(verbosity_name, x) vtkVLog(vtkLogger::VERBOSITY_##verbosity_name, x) |
Add to log given the verbosity level. | |
#define | vtkVLogIfF(level, cond, ...) |
Add to log only when the cond passes. | |
#define | vtkLogIfF(verbosity_name, cond, ...) vtkVLogIfF(vtkLogger::VERBOSITY_##verbosity_name, cond, __VA_ARGS__) |
Add to log only when the cond passes. | |
#define | vtkVLogIf(level, cond, x) |
Add to log only when the cond passes. | |
#define | vtkLogIf(verbosity_name, cond, x) vtkVLogIf(vtkLogger::VERBOSITY_##verbosity_name, cond, x) |
Add to log only when the cond passes. | |
#define | vtkLogStartScope(verbosity_name, id) vtkLogger::StartScope(vtkLogger::VERBOSITY_##verbosity_name, id, __FILE__, __LINE__) |
Explicitly mark start and end of log scope. | |
#define | vtkLogEndScope(id) vtkLogger::EndScope(id) |
Explicitly mark start and end of log scope. | |
#define | vtkLogStartScopeF(verbosity_name, id, ...) vtkLogger::StartScopeF(vtkLogger::VERBOSITY_##verbosity_name, id, __FILE__, __LINE__, __VA_ARGS__) |
Explicitly mark start and end of log scope. | |
#define | vtkVLogStartScope(level, id) vtkLogger::StartScope(level, id, __FILE__, __LINE__) |
Explicitly mark start and end of log scope. | |
#define | vtkVLogStartScopeF(level, id, ...) vtkLogger::StartScopeF(level, id, __FILE__, __LINE__, __VA_ARGS__) |
Explicitly mark start and end of log scope. | |
#define VTK_PRINTF_LIKE | ( | fmtarg, | |
firstvararg | |||
) |
Definition at line 192 of file vtkLogger.h.
#define VTK_FORMAT_STRING_TYPE const char* |
Definition at line 193 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 480 of file vtkLogger.h.
#define vtkLogF | ( | verbosity_name, | |
... | |||
) | vtkVLogF(vtkLogger::VERBOSITY_##verbosity_name, __VA_ARGS__) |
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 484 of file vtkLogger.h.
#define vtkVLog | ( | level, | |
x | |||
) |
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 485 of file vtkLogger.h.
#define vtkLog | ( | verbosity_name, | |
x | |||
) | vtkVLog(vtkLogger::VERBOSITY_##verbosity_name, x) |
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 495 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 511 of file vtkLogger.h.
#define vtkLogIfF | ( | verbosity_name, | |
cond, | |||
... | |||
) | vtkVLogIfF(vtkLogger::VERBOSITY_##verbosity_name, cond, __VA_ARGS__) |
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 516 of file vtkLogger.h.
#define vtkVLogIf | ( | level, | |
cond, | |||
x | |||
) |
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 519 of file vtkLogger.h.
#define vtkLogIf | ( | verbosity_name, | |
cond, | |||
x | |||
) | vtkVLogIf(vtkLogger::VERBOSITY_##verbosity_name, cond, x) |
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 529 of file vtkLogger.h.
#define VTKLOG_CONCAT_IMPL | ( | s1, | |
s2 | |||
) | s1##s2 |
Definition at line 532 of file vtkLogger.h.
#define VTKLOG_CONCAT | ( | s1, | |
s2 | |||
) | VTKLOG_CONCAT_IMPL(s1, s2) |
Definition at line 533 of file vtkLogger.h.
#define VTKLOG_ANONYMOUS_VARIABLE | ( | x | ) | VTKLOG_CONCAT(x, __LINE__) |
Definition at line 534 of file vtkLogger.h.
#define vtkVLogScopeF | ( | level, | |
... | |||
) |
Definition at line 536 of file vtkLogger.h.
#define vtkLogScopeF | ( | verbosity_name, | |
... | |||
) | vtkVLogScopeF(vtkLogger::VERBOSITY_##verbosity_name, __VA_ARGS__) |
Definition at line 541 of file vtkLogger.h.
#define vtkLogScopeFunction | ( | verbosity_name | ) | vtkLogScopeF(verbosity_name, "%s", __func__) |
Definition at line 544 of file vtkLogger.h.
#define vtkVLogScopeFunction | ( | level | ) | vtkVLogScopeF(level, "%s", __func__) |
Definition at line 545 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 552 of file vtkLogger.h.
#define vtkLogEndScope | ( | id | ) | vtkLogger::EndScope(id) |
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 554 of file vtkLogger.h.
#define vtkLogStartScopeF | ( | verbosity_name, | |
id, | |||
... | |||
) | vtkLogger::StartScopeF(vtkLogger::VERBOSITY_##verbosity_name, id, __FILE__, __LINE__, __VA_ARGS__) |
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 556 of file vtkLogger.h.
#define vtkVLogStartScope | ( | level, | |
id | |||
) | vtkLogger::StartScope(level, 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 559 of file vtkLogger.h.
#define vtkVLogStartScopeF | ( | level, | |
id, | |||
... | |||
) | vtkLogger::StartScopeF(level, id, __FILE__, __LINE__, __VA_ARGS__) |
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 560 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 569 of file vtkLogger.h.