DJI Onboard SDK  4.0
Classes | Namespaces | Macros
dji_log.hpp File Reference

Logging mechanism for printing status and error messages to the screen. More...

#include "dji_singleton.hpp"
#include "dji_platform.hpp"
Include dependency graph for dji_log.hpp:

Go to the source code of this file.

Classes

class  DJI::OSDK::Log
 Logger for DJI OSDK supporting different logging channels. More...
 

Namespaces

 DJI
 handle array of characters
 
 DJI::OSDK
 

Macros

#define DLOG(_title_)
 
#define DLOG_PRIVATE(_title_)
 
#define STATUS   DJI::OSDK::Log::instance().getStatusLogState()
 
#define ERRORLOG   DJI::OSDK::Log::instance().getErrorLogState()
 
#define DEBUG   DJI::OSDK::Log::instance().getDebugLogState()
 
#define DSTATUS   DLOG(STATUS)
 Global Logging macro for status messages. More...
 
#define DSTATUS_PRIVATE   DLOG_PRIVATE(STATUS)
 
#define DERROR   DLOG(ERRORLOG)
 Global Logging macro for error messages. More...
 
#define DERROR_PRIVATE   DLOG_PRIVATE(ERRORLOG)
 
#define DDEBUG   DLOG(DEBUG)
 Global Logging macro for debug messages. More...
 
#define DDEBUG_PRIVATE   DLOG_PRIVATE(DEBUG)
 

Detailed Description

Logging mechanism for printing status and error messages to the screen.

Version
3.3
Date
Jun 15 2017

@Copyright (c) 2016-2017 DJI

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Macro Definition Documentation

◆ DDEBUG

#define DDEBUG   DLOG(DEBUG)

Global Logging macro for debug messages.

Users can use methods in the DJI::OSDK::Log class to enable/disable this logging channel

◆ DERROR

#define DERROR   DLOG(ERRORLOG)

Global Logging macro for error messages.

Users can use methods in the DJI::OSDK::Log class to enable/disable this logging channel

◆ DLOG

#define DLOG (   _title_)
Value:
DJI::OSDK::Log::instance() \
.title((_title_), #_title_, __func__, __LINE__) \
.print

◆ DLOG_PRIVATE

#define DLOG_PRIVATE (   _title_)
Value:
DJI::OSDK::Log::instance() \
.title((_title_), #_title_) \
.print

◆ DSTATUS

#define DSTATUS   DLOG(STATUS)

Global Logging macro for status messages.

Users can use methods in the DJI::OSDK::Log class to enable/disable this logging channel