|
DJI Onboard SDK
4.0
|
Logger for DJI OSDK supporting different logging channels. More...
#include <dji_log.hpp>
Inherits DJI::OSDK::Singleton< T >.
Public Member Functions | |
| Log (Mutex *m=0) | |
| Log & | title (int level, const char *prefix, const char *func, int line) |
| Log & | title (int level, const char *prefix) |
| Log & | print () |
| void | enableStatusLogging () |
| Enable logging of status messages called through DSTATUS macro. More... | |
| void | disableStatusLogging () |
| Disable logging of status messages called through DSTATUS macro. More... | |
| void | enableDebugLogging () |
| Enable logging of status messages called through DDEBUG macro. More... | |
| void | disableDebugLogging () |
| Disable logging of status messages called through DDEBUG macro. More... | |
| void | enableErrorLogging () |
| Enable logging of status messages called through DERROR macro. More... | |
| void | disableErrorLogging () |
| Disable logging of status messages called through DERROR macro. More... | |
| bool | getStatusLogState () |
| bool | getDebugLogState () |
| bool | getErrorLogState () |
| virtual Log & | print (const char *fmt,...) |
| Log & | operator<< (bool val) |
| Log & | operator<< (short val) |
| Log & | operator<< (uint16_t val) |
| Log & | operator<< (int val) |
| Log & | operator<< (uint32_t val) |
| Log & | operator<< (long val) |
| Log & | operator<< (unsigned long val) |
| Log & | operator<< (long long val) |
| Log & | operator<< (unsigned long long val) |
| Log & | operator<< (float val) |
| Log & | operator<< (double val) |
| Log & | operator<< (long double val) |
| Log & | operator<< (void *val) |
| Log & | operator<< (char c) |
| Log & | operator<< (uint8_t c) |
| Log & | operator<< (int8_t c) |
| Log & | operator<< (const char *str) |
Logger for DJI OSDK supporting different logging channels.
The Log class is a singleton and contains some pre-defined logging levels. The class provides methods to turn on or off these predefined logging levels. Users can also create their own logging channels using the DLOG macro.
| void DJI::OSDK::Log::disableDebugLogging | ( | ) |
Disable logging of status messages called through DDEBUG macro.
Call this method on the DJI::OSDK::Log.instance() in your program.
| void DJI::OSDK::Log::disableErrorLogging | ( | ) |
Disable logging of status messages called through DERROR macro.
Call this method on the DJI::OSDK::Log.instance() in your program.
| void DJI::OSDK::Log::disableStatusLogging | ( | ) |
Disable logging of status messages called through DSTATUS macro.
Call this method on the DJI::OSDK::Log.instance() in your program.
| void DJI::OSDK::Log::enableDebugLogging | ( | ) |
Enable logging of status messages called through DDEBUG macro.
Call this method on the DJI::OSDK::Log.instance() in your program.
| void DJI::OSDK::Log::enableErrorLogging | ( | ) |
Enable logging of status messages called through DERROR macro.
Call this method on the DJI::OSDK::Log.instance() in your program.
| void DJI::OSDK::Log::enableStatusLogging | ( | ) |
Enable logging of status messages called through DSTATUS macro.
Call this method on the DJI::OSDK::Log.instance() in your program.
| Log& DJI::OSDK::Log::title | ( | int | level, |
| const char * | prefix, | ||
| const char * | func, | ||
| int | line | ||
| ) |
| Log& DJI::OSDK::Log::title | ( | int | level, |
| const char * | prefix | ||
| ) |
1.8.15