The Logger class handles trace output for all DoubleClick Studio components.
By default, the logging level is set to INFO. This outputs trace commands in the output console for the vast majority of important Enabler API calls, such as
To view output that includes all events dispatched from all DoubleClick Studio components, set the log level to EVENTS.
Constants
Name | Value | Description |
---|---|---|
EVENTS | 2 | Setting the logging level to Logger.EVENTS enables all DoubleClick Studio components to output events based on user interaction, and all events dispatched from the components. |
INFO | 1 | Setting the logging level to Logger.INFO enables all DoubleClick Studio components to output events based on user interaction. This is the default level. |
NONE | 0 | Setting the logging level to Logger.NONE suppresses all output. |
Static Methods
Logger.getJsConsoleLogger()
:
Function
Returns a javascript console logging function that writes its first argument to console.log();
Logger.setLogLevel(logLevel:int)
:
void
Sets the desired level of logging for all DoubleClick Studio components.
Logger.setLoggingCallback(callback:Function)
:
void
Sets the logger to use the provided callback instead of the regular flash
trace
function.
Example:
import com.google.ads.studio.utils.Logger; Logger.setLoggingCallback(Logger.getJsConsoleLogger());