File:LoggingServicePlugin.js

/**
 * @module Container
 * @namespace springroll
 */
(function()
{
	/**
	 * @class Container
	 */
	var plugin = new springroll.ContainerPlugin(20);

	plugin.setup = function()
	{
		// Include classes
		var LoggingService = include('springroll.pbskids.LoggingService');

		/**
		 * The Progress tracker client for sending events 
		 * @property {springroll.pbskids.LoggingService} loggingService
		 */
		this.loggingService = new LoggingService(
			this.options.loggingHost,
			this.options.loggingPort,
			this.options.loggingChannel
		);
	};

	plugin.teardown = function()
	{
		this.loggingService.destroy();
		delete this.loggingService;
	};

}());