VTK
9.2.6
|
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) |
#define | VTKLOG_CONCAT(s1, s2) |
#define | VTKLOG_ANONYMOUS_VARIABLE(x) |
#define | vtkVLogScopeF(level, ...) |
#define | vtkLogScopeF(verbosity_name, ...) |
#define | vtkLogScopeFunction(verbosity_name) |
#define | vtkVLogScopeFunction(level) |
#define | vtkLogIdentifier(vtkobject) |
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, ...) |
Add to log given the verbosity level. | |
#define | vtkVLog(level, x) |
Add to log given the verbosity level. | |
#define | vtkLog(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, ...) |
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) |
Add to log only when the cond passes. | |
#define | vtkLogStartScope(verbosity_name, id) |
Explicitly mark start and end of log scope. | |
#define | vtkLogEndScope(id) |
Explicitly mark start and end of log scope. | |
#define | vtkLogStartScopeF(verbosity_name, id, ...) |
Explicitly mark start and end of log scope. | |
#define | vtkVLogStartScope(level, id) |
Explicitly mark start and end of log scope. | |
#define | vtkVLogStartScopeF(level, id, ...) |
Explicitly mark start and end of log scope. | |
#define VTK_PRINTF_LIKE | ( | fmtarg, | |
firstvararg ) |
Definition at line 176 of file vtkLogger.h.
#define VTK_FORMAT_STRING_TYPE const char* |
Definition at line 177 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 463 of file vtkLogger.h.
#define vtkLogF | ( | verbosity_name, | |
... ) |
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 467 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 468 of file vtkLogger.h.
#define vtkLog | ( | 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 478 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 494 of file vtkLogger.h.
#define vtkLogIfF | ( | verbosity_name, | |
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 499 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 502 of file vtkLogger.h.
#define vtkLogIf | ( | 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 512 of file vtkLogger.h.
#define VTKLOG_CONCAT_IMPL | ( | s1, | |
s2 ) |
Definition at line 515 of file vtkLogger.h.
#define VTKLOG_CONCAT | ( | s1, | |
s2 ) |
Definition at line 516 of file vtkLogger.h.
#define VTKLOG_ANONYMOUS_VARIABLE | ( | x | ) |
Definition at line 517 of file vtkLogger.h.
#define vtkVLogScopeF | ( | level, | |
... ) |
Definition at line 519 of file vtkLogger.h.
#define vtkLogScopeF | ( | verbosity_name, | |
... ) |
Definition at line 524 of file vtkLogger.h.
#define vtkLogScopeFunction | ( | verbosity_name | ) |
Definition at line 527 of file vtkLogger.h.
#define vtkVLogScopeFunction | ( | level | ) |
Definition at line 528 of file vtkLogger.h.
#define vtkLogStartScope | ( | verbosity_name, | |
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 535 of file vtkLogger.h.
#define vtkLogEndScope | ( | 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 537 of file vtkLogger.h.
#define vtkLogStartScopeF | ( | verbosity_name, | |
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 539 of file vtkLogger.h.
#define vtkVLogStartScope | ( | level, | |
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 542 of file vtkLogger.h.
#define vtkVLogStartScopeF | ( | level, | |
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 543 of file vtkLogger.h.
#define vtkLogIdentifier | ( | vtkobject | ) |
Convenience macro to generate an identifier string for any vtkObjectBase subclass.
Definition at line 552 of file vtkLogger.h.