Logger class should be used as a global singleton object (GetInstance()).
More...
#include <Console.h>
|
static Logger & | GetInstance () |
| Get Logger global singleton instance. More...
|
|
template<typename... Args> |
static void | _LogError (const char *file_name, int line_number, const char *function_name, bool force_console_log, const char *format, Args &&... args) |
|
template<typename... Args> |
static void | _LogWarning (const char *file_name, int line_number, const char *function_name, bool force_console_log, const char *format, Args &&... args) |
|
template<typename... Args> |
static void | _LogInfo (const char *file_name, int line_number, const char *function_name, bool force_console_log, const char *format, Args &&... args) |
|
template<typename... Args> |
static void | _LogDebug (const char *file_name, int line_number, const char *function_name, bool force_console_log, const char *format, Args &&... args) |
|
Logger class should be used as a global singleton object (GetInstance()).
◆ Logger()
open3d::utility::Logger::Logger |
( |
Logger const & |
| ) |
|
|
delete |
◆ _LogDebug()
template<typename... Args>
static void open3d::utility::Logger::_LogDebug |
( |
const char * |
file_name, |
|
|
int |
line_number, |
|
|
const char * |
function_name, |
|
|
bool |
force_console_log, |
|
|
const char * |
format, |
|
|
Args &&... |
args |
|
) |
| |
|
inlinestatic |
◆ _LogError()
template<typename... Args>
static void open3d::utility::Logger::_LogError |
( |
const char * |
file_name, |
|
|
int |
line_number, |
|
|
const char * |
function_name, |
|
|
bool |
force_console_log, |
|
|
const char * |
format, |
|
|
Args &&... |
args |
|
) |
| |
|
inlinestatic |
◆ _LogInfo()
template<typename... Args>
static void open3d::utility::Logger::_LogInfo |
( |
const char * |
file_name, |
|
|
int |
line_number, |
|
|
const char * |
function_name, |
|
|
bool |
force_console_log, |
|
|
const char * |
format, |
|
|
Args &&... |
args |
|
) |
| |
|
inlinestatic |
◆ _LogWarning()
template<typename... Args>
static void open3d::utility::Logger::_LogWarning |
( |
const char * |
file_name, |
|
|
int |
line_number, |
|
|
const char * |
function_name, |
|
|
bool |
force_console_log, |
|
|
const char * |
format, |
|
|
Args &&... |
args |
|
) |
| |
|
inlinestatic |
◆ GetInstance()
Logger & open3d::utility::Logger::GetInstance |
( |
| ) |
|
|
static |
Get Logger global singleton instance.
◆ GetVerbosityLevel()
Get global verbosity level of Open3D.
◆ operator=()
void open3d::utility::Logger::operator= |
( |
Logger const & |
| ) |
|
|
delete |
◆ ResetPrintFunction()
void open3d::utility::Logger::ResetPrintFunction |
( |
| ) |
|
Reset the print function to the default one (print to console).
◆ SetPrintFunction()
void open3d::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. |
◆ SetVerbosityLevel()
void open3d::utility::Logger::SetVerbosityLevel |
( |
VerbosityLevel |
verbosity_level | ) |
|
Set global verbosity level of Open3D.
- Parameters
-
verbosity_level | Messages with equal or less than verbosity_level verbosity will be printed. |
The documentation for this class was generated from the following files: