Logger class should be used as a global singleton object (GetInstance()).
More...
#include <Logging.h>
|
| static Logger & | GetInstance () |
| | Get Logger global singleton instance. More...
|
| |
| template<typename... Args> |
| static void | LogError_ (const char *file, int line, const char *function, const char *format, Args &&...args) |
| |
| template<typename... Args> |
| static void | LogWarning_ (const char *file, int line, const char *function, const char *format, Args &&...args) |
| |
| template<typename... Args> |
| static void | LogInfo_ (const char *file, int line, const char *function, const char *format, Args &&...args) |
| |
| template<typename... Args> |
| static void | LogDebug_ (const char *file, int line, const char *function, const char *format, Args &&...args) |
| |
Logger class should be used as a global singleton object (GetInstance()).
◆ Logger()
| cloudViewer::utility::Logger::Logger |
( |
Logger const & |
| ) |
|
|
delete |
◆ GetInstance()
| Logger & cloudViewer::utility::Logger::GetInstance |
( |
| ) |
|
|
static |
◆ GetPrintFunction()
| const std::function< void(const std::string &)> cloudViewer::utility::Logger::GetPrintFunction |
( |
| ) |
|
◆ GetVerbosityLevel()
| VerbosityLevel cloudViewer::utility::Logger::GetVerbosityLevel |
( |
| ) |
const |
◆ LogDebug_()
template<typename... Args>
| static void cloudViewer::utility::Logger::LogDebug_ |
( |
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
function, |
|
|
const char * |
format, |
|
|
Args &&... |
args |
|
) |
| |
|
inlinestatic |
◆ LogError_()
template<typename... Args>
| static void cloudViewer::utility::Logger::LogError_ |
( |
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
function, |
|
|
const char * |
format, |
|
|
Args &&... |
args |
|
) |
| |
|
inlinestatic |
◆ LogInfo_()
template<typename... Args>
| static void cloudViewer::utility::Logger::LogInfo_ |
( |
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
function, |
|
|
const char * |
format, |
|
|
Args &&... |
args |
|
) |
| |
|
inlinestatic |
◆ LogWarning_()
template<typename... Args>
| static void cloudViewer::utility::Logger::LogWarning_ |
( |
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
function, |
|
|
const char * |
format, |
|
|
Args &&... |
args |
|
) |
| |
|
inlinestatic |
◆ operator=()
| void cloudViewer::utility::Logger::operator= |
( |
Logger const & |
| ) |
|
|
delete |
◆ ResetPrintFunction()
| void cloudViewer::utility::Logger::ResetPrintFunction |
( |
| ) |
|
◆ SetPrintFunction()
| void cloudViewer::utility::Logger::SetPrintFunction |
( |
std::function< void(const std::string &)> |
print_fcn | ) |
|
Overwrite the default print function, this is useful when you want to redirect prints rather than printing to stdout. For example, in Open3D's python binding, the default print function is replaced with py::print().
- Parameters
-
| print_fcn | The function for printing. It should take a string input and returns nothing. |
Referenced by cloudViewer::visualization::app::RunViewer().
◆ SetVerbosityLevel()
| void cloudViewer::utility::Logger::SetVerbosityLevel |
( |
VerbosityLevel |
verbosity_level | ) |
|
The documentation for this class was generated from the following files: