The SetLogTarget method creates an instance of the LogTarget class, sets its HREF property to the string passed as an argument, and then sets the LogTarget property to the new ILogTarget dispinterface.
VBScript Syntax
IProject.SetLogTarget URL
Parameters
URL
A string to set the created class LogTarget object's HREF property.
Return Value
The newly created class LogTarget object's dispinterface.
Remarks
If the Project object's LogTarget property holds a valid dispinterface address, it is passed to the GetCDFString method invoked on the top-level Channel object when the CDF string is built for the project. This results in a <LOGTARGET> element being included for the top-level channel object.
Example
' Using the Windows Scripting Host and VBScript
Set Project = CreateObject("Push.Project")
Project.Load("News Project")
call Project.SetLogTarget("http://somecompany.com/logging")
See Also