VisionDiagnostics
class VisionDiagnostics : NSObject
Represents the vision SDK diagnostics logging functionalities
-
Start console logging
Logs will be written to standard output.
Declaration
Swift
class func startConsoleLogging()
-
Start console logging
Declaration
Swift
class func startConsoleLogging(withRedirect logToStderr: Bool)
Parameters
logToStderr
When set to true, logs will be written to standard error, otherwise to standard output.
-
Stop console logging
Declaration
Swift
class func stopConsoleLogging()
-
Enables the native file logger
Declaration
Swift
class func startFileLogging(_ filename: String, appendToFile: Bool)
Parameters
filename
The name of resulting log file.
appendToFile
If true will append to file (if already exists). Otherwise will create a new file.
-
Stops the native file logger
Declaration
Swift
class func stopFileLogging()