Class IDiagLog¶
Defined in File IDiagLog.hpp
Class Documentation¶
-
class IDiagLog¶
Public Functions
-
bool setOptions(const Options &loggingOptions)¶
Sets the options after initialization occurs.
- Parameters
loggingOptions – [in] : The options to set up diagnostic logging.
- Returns
Error code if the options could not be set. Ensure logging is not started/ SNPE_SUCCESS otherwise
-
Options getOptions() const¶
Gets the curent options for the diag logger.
- Returns
Handle to access DiagLog options.
-
bool setDiagLogMask(const std::string &mask)¶
Allows for setting the log mask once diag logging has started.
- Parameters
mask – [in] : DiagLogMask
- Returns
SNPE_SUCCESS if the level was set successfully.
-
bool setDiagLogMask(const DlSystem::String &mask)¶
Allows for setting the log mask once diag logging has started.
- Parameters
mask – [in] : DiagLogMask
- Returns
SNPE_SUCCESS if the level was set successfully.
-
bool start(void)¶
Enables logging. Logging should be started prior to the instantiation of other SNPE_APIs to ensure all events are captured.
- Returns
SNPE_SUCCESS if diagnostic logging started successfully.
-
bool stop(void)¶
Disables logging.
- Returns
SNPE_SUCCESS if logging stopped successfully. Error code otherwise.
-
bool setOptions(const Options &loggingOptions)¶