SetLogTarget Method

The SetLogTarget method creates an instance of the LogTarget class, sets it's 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 build 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

GetCDFString Method

IChannel GetCDFString Method

Class LogTarget


© 1997-1998 Microsoft Corporation. All rights reserved.