EnableLogging Property of the IFPCPolicyRule Interface

The EnableLogging property gets or sets a Boolean value that indicates whether the rule is enabled for logging.

[C++]
HRESULT put_EnableLogging(
	VARIANT_BOOL fEnableLogging
);
HRESULT get_EnableLogging(
	VARIANT_BOOL* pfEnableLogging
);

Parameters

pfEnableLogging

Pointer to a Boolean variable that is set on return to VARIANT_TRUE if the rule is enabled for logging, or to VARIANT_FALSE if the rule is not enabled for logging.

fEnableLogging

Boolean value that indicates whether the rule is enabled for logging.

Return Value

These property methods return S_OK if the call is successful; otherwise, they return an error code.

[Visual Basic]
Property EnableLogging As Boolean

Property Value

Boolean value that indicates whether the rule is enabled for logging.

Remarks

This property is read/write. Its default value is True (VARIANT_TRUE in C++).

When a rule is enabled for logging, all client requests that match the rule are recorded in the applicable log. However, a for Web publishing rule, this property applies only to the Web proxy log, and all traffic arriving on port 80 is recorded in the Firewall service log.

This property can be used to enable or disable logging for a system policy rule. For a VBScript code example that disables logging for all system policy rules defined in the containing array, see the reference page for the PolicyRules property of the FPCSystemPolicy object.

Requirements

Client Requires Windows Vista or Windows XP.
Server Requires Windows Server 2008.
Version Requires Forefront Threat Management Gateway (TMG).
IDL

Declared in Msfpccom.idl.

DLL

Requires Msfpccom.dll.

See Also

FPCPolicyRule


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.

[an error occurred while processing this directive]