Logger QML Type

logging APIs. More...

Import Statement: import com.dolby.dcp.engine 1.0

Methods

  • void syslog(LogLevel level, string message)

Detailed Description

This is a system wide QML object providing syslog logging APIs.

The logs can be downloaded from the Dolby Conference Phone Web UI, or uploaded to the provisioning server for centralized log management. The Dolby Conference Phone also supports syslog protocol to integrate with customer's existing log management solution.

By default the app log level is set to INFO. Adjust Logging.Level.UI to change the runtime log level of the app.

Note: This component is a singleton type.

import com.dolby.dcp.engine 1.0

Example:

import QtQuick 1.1
import com.dolby.dcp.engine 1.0

function launchApp () {
    Logger.syslog(LogLevel.DEBUG, "launching application");
    // other code
}

Method Documentation

void syslog(LogLevel level, string message)

logs message to syslog if syslog logging level is set to level.

The level can have the following values:

  • LogLevel.CRITICAL - The app has encountered a critical error that requires immediate attention.
  • LogLevel.ERROR - The app has encountered an error that may not require immediate attention.
  • LogLevel.WARNING - Nearly normal operation, something suspicious
  • LogLevel.NOTICE - Informative message that indicates normal user operation
  • LogLevel.INFO - Informative message that indicates normal operation
  • LogLevel.DEBUG - Debug message that helps the developer to understand the low level app operational flow
  • LogLevel.DEBUG1 - Debug message that helps the developer to understand the lowest level app operational flow