setLogLevel()

Description

Sets the log display level. The default is DLLE_OFF.

Syntax

static func setLogLevel(logLevel:DcsLogLevelEnum)

Parameters

logLevel:DcsLogLevelEnum The log level to set.

Return value

Void

Remarks

DcsLogLevelEnum Description
DLLE_OFF Do not record any information.
DLLE_ERROR Record the error message.
DLLE_DEBUG Record the debugging information, including error messages, function access information and status information.

If the value you set is not among the above, the exception DcsValueOutOfRangeException will be thrown.

Example

class ViewController: UIViewController {
    var dcsView:DcsView!
    override func viewDidLoad() {
        super.viewDidLoad()
        DcsView.setLogLevel(DLLE_DEBUG) //Set the log level before initializing dcsView.
        dcsView = DcsView(frame: CGRect(x:0,y:0,width:self.view.frame.size.width,height:self.view.frame.size.height))
    }
}
Is this page helpful?