DoubleClick Studio AS3 API Reference

class com.google.ads.studio.utils.Logger

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

  • Exits
  • Counters
  • Timers
  • Expansion
  • Collapses
  • Closes
  • To view output that includes all events dispatched from all DoubleClick Studio components, set the log level to EVENTS.

    Constants

    NameValueDescription
    EVENTS2

    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.

    INFO1

    Setting the logging level to Logger.INFO enables all DoubleClick Studio components to output events based on user interaction. This is the default level.

    NONE0

    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();

    Expand
    Logger.setLogLevel(logLevel:int) : void

    Sets the desired level of logging for all DoubleClick Studio components.

    Expand
    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());
         

    Back to top

    1. com.google.ads.studio
      1. AssetLoader
      2. ContextualDiscovery
      3. F2fEnabler
      4. FullScreenButton
      5. HtmlEnabler
      6. ProxyEnabler
      7. VpaidEnabler
    1. com.google.ads.studio.configurable
      1. Configurable
    1. com.google.ads.studio.display
      1. StudioLoader
    1. com.google.ads.studio.events
      1. StudioEvent
      2. StudioVideoEvent
    1. com.google.ads.studio.expanding
      1. Expanding
    1. com.google.ads.studio.localconnect
      1. LocalConnectWrapper
    1. com.google.ads.studio.video
      1. ConfigurableVideoPlayer
      2. EnhancedVideoController
      3. PlayPauseButton
      4. Playlist
      5. Scrubber
      6. SoundToggleButton
      7. VideoController
      8. VideoEntry
      9. VideoPlayer
      10. VideoPlayerAdvanced
    1. com.google.ads.studio.vpaid
      1. VpaidTimer