DJI Mobile SDK Documentation

      class DJIRemoteLogger

      @interface DJIRemoteLogger : NSObject
      Header:DJIRemoteLogger.h
      Inherits From:NSObject
      Description:

      This class provides methods to configure and use the remote logger.

      Class Members:
      class method logWithLevel:file:function:line:format
      + (void)logWithLevel:(DJILogLevel)level
      file:(const char *)file
      function:(const char *)function
      line:(NSUInteger)line
      format:(NSString *)format, ...
      Header:DJIRemoteLogger.h
      Description:

      Log with level, file, function, line and format.

      Input Parameters:
      DJILogLevel levelAn enum value of DJILogLevel.
      const char * fileA const char value.
      const char * functionA const char value.
      NSUInteger lineAn NSUInteger value.
      NSString * formatAn NSString object.
      class method logWithLevel:file:function:line:string
      + (void)logWithLevel:(DJILogLevel)level
      file:(const char *)file
      function:(const char *)function
      line:(NSUInteger)line
      string:(NSString *)string
      Header:DJIRemoteLogger.h
      Description:

      Log with level, file, function, line and string.

      Input Parameters:
      DJILogLevel levelAn enum value of DJILogLevel.
      const char * fileA const char value.
      const char * functionA const char value.
      NSUInteger lineAn NSUInteger value.
      NSString * stringAn NSString object.
      Reset
      class method
      class method resetLogger
      + (void)resetLogger
      Header:DJIRemoteLogger.h
      Description:

      Reset remote logger.

      class method configureLoggerWithDeviceId:URLString:showLogInConsole
      + (void)configureLoggerWithDeviceId:(NSString *)deviceID URLString:(NSString *)urlString showLogInConsole:(BOOL)showLogInConsole
      Header:DJIRemoteLogger.h
      Description:

      This method allows configuration of the logger.

      Input Parameters:
      NSString * deviceIDDevice ID string.
      NSString * urlStringURL string.
      BOOL showLogInConsoleShow log in console.
      Log level
      class method
      class method currentLogLevel
      + (DJILogLevel)currentLogLevel
      Header:DJIRemoteLogger.h
      Description:

      Returns the current log level.

      Return:
      DJILogLevelA DJILogLevel enum value.
      class method
      class method setCurrentLogLevel
      + (void)setCurrentLogLevel:(DJILogLevel)level
      Header:DJIRemoteLogger.h
      Description:

      Sets the current level of the remote log.

      Input Parameters:
      DJILogLevel levelDJILogLevel object.
      enum DJILogLevel
      typedef NS_ENUM(NSUInteger, DJILogLevel)
      Header:DJIRemoteLogger.h
      Description:

      The DJI Remote Log levels.

      Enum Members:
      DJILogLevelOffRemote Log level off.
      DJILogLevelErrorRemote Log level Error.
      DJILogLevelWarnRemote Log level Warn.
      DJILogLevelDebugRemote Log level Debug.
      DJILogLevelInfoRemote Log level Info.
      DJILogLevelVerboseRemote Log level Verbose.