Class Debug
Class Summary
Debug()
static debugging utility. To enable debug messages from browser session, simply add '?debug=1' or 'debug=true' to URL when loading any APMPlayer instance (enables console logging). To disable Console + onScreen debug trace, use 'debug=all'.
Method Summary
Field Detail
enabled
used to mark if debugging logs should output or not. to enable, add ?debug=1 to URL when loading player. by default, it logs to the console only; to enable a debug div, do debug=all
- Default Value:
- false
consoleOnly
used to mark if debugging logs should output to console only; true by default. use debug=all to log to both the console AND a helper div on screen.
- Default Value:
- true
type
object that holds the three different logging levels
Debug.type.info Debug.type.warn Debug.type.error
Method Detail
-
log(message, type, object_name)writes to the log
- Parameters:
- {string} message the information to log
- {string} type level of severity to log (see type)
- {string} object_name optional object name to pass (if logging outside of APMPlayer -- APMPlayer_UI for instance)