|
libfreenect2 0.4
Open source driver for the Kinect for Windows v2 (K4W2) sensor
|
Specify logging level and custom logging destination. More...
Classes | |
| class | Logger |
| Provide interfaces to receive log messages. More... | |
Functions | |
| Logger * | createConsoleLogger (Logger::Level level) |
| Allocate a Logger instance that outputs log to standard input/output. | |
| Logger * | createConsoleLoggerWithDefaultLevel () |
| Default is Info, or overridden by environment variable LIBFREENECT2_LOGGER_LEVEL. | |
| Logger * | getGlobalLogger () |
| Get the pointer to the current logger. | |
| void | setGlobalLogger (Logger *logger) |
| Set the logger for all log output in this library. | |
Specify logging level and custom logging destination.
| Logger * createConsoleLogger | ( | Logger::Level | level | ) |
Allocate a Logger instance that outputs log to standard input/output.
| Logger * createConsoleLoggerWithDefaultLevel | ( | ) |
Default is Info, or overridden by environment variable LIBFREENECT2_LOGGER_LEVEL.
libfreenect2 will have an initial global logger created with createConsoleLoggerWithDefaultLevel(). You do not have to explicitly call this if the default is already what you want.
| Logger * getGlobalLogger | ( | ) |
Get the pointer to the current logger.
| void setGlobalLogger | ( | Logger * | logger | ) |
Set the logger for all log output in this library.
| logger | Pointer to your logger, or NULL to disable logging. The memory will be freed automatically. You should not free the pointer. |