Adobe DPS - Library and Store SDK 2.25

Class adobeDPS-Log

Class used for logging within the Adobe Library API.

Constructor

adobeDPS-Log()
[inner] Creates an instance of the Log class.

Static Fields

Field Defined By
adobeDPS-Log.instance
The singleton of the Log.
Log

Fields

Field Defined By
The log levels that may be used.
Log

Methods

Method Defined By
error(error:Error)
Log an error.
Log
warn(msg:String)
Log an message at warning level.
Log
info(msg:String)
Log an message at info level.
Log
debug(msg:String)
Log an message at debug level.
Log
profile(id:String)
Function used to create and execute profilers.
Log
bridge(msg)
Function used to send bridge specific log information.
Log
print(lvls:Number, timestamp:Boolean)
Function used to get log information for some subset of the available LogLevels.
Log
clear()
Function used to clear the log
Log
Class Detail
adobeDPS-Log()
[inner] Creates an instance of the Log class.
- This is an internal constructor and shouldn't be called by regular users.
Static Field Details
adobeDPS-Log.instance
The singleton of the Log.
Field Details
logLevels
The log levels that may be used.
Method Details
error(error:Error)
Log an error. This will also try to print a stackTrace if printStackTrace is available.
Parameters
error Error The error that you wish to log
warn(msg:String)
Log an message at warning level.
Parameters
msg String The message that you wish to log
info(msg:String)
Log an message at info level.
Parameters
msg String The message that you wish to log
debug(msg:String)
Log an message at debug level.
Parameters
msg String The message that you wish to log
profile(id:String)
Function used to create and execute profilers. Each profiler is given an id. When this is called again with the same id, the profiler will be executed and the time between calls will be logged along with the id of the profiler. For this reason, id's should be used that are descriptive of what is being profiled.
Parameters
id String The id of the profiler to be created or executed
bridge(msg)
Function used to send bridge specific log information. This should only be used within the API to log all communications across the bridge. This should not be used outside of the API because it will pollute the bridge specific logs.
Parameters
msg The message that you wish to log
print(lvls:Number, timestamp:Boolean)
Function used to get log information for some subset of the available LogLevels. Multiple levels can be requested by creating a bitmask of the LogLevels to be returned. I.E. LogLevels.ERROR | LogLevels.WARN.
Parameters
lvls Number The bitmask of the levels that should be returned
timestamp Boolean Whether the log messages should be timestamped
clear()
Function used to clear the log
©2012-2013 Adobe Systems, inc
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Mar 27 2013 16:17:06 GMT-0700 (PDT)