Loupe - Log - Monitor - Resolve
Gibraltar.Agent.PostSharp Namespace / GTrace Class / LogParameterDetails Property

In This Topic
    LogParameterDetails Property (GTrace)
    In This Topic
    Enables or disables recording of object detail for parameters via ToString. Enabled by default.
    Syntax
    'Declaration
     
    
    Public Property LogParameterDetails As Boolean
    public bool LogParameterDetails {get; set;}
    Remarks

    When enabled the parameter values being recorded upon entry to a method being monitored (with LogParameters enabled) and return values being recorded upon exit (with LogReturnValue) will include object detail by converting class instances via their ToString method. This can produce significant overhead depending on the ToString implementation for those passed parameters.

    When disabled the parameter values for most class instances will be recorded by their type and hash code to avoid calling ToString() and thus keep overhead to a minimum. Value types (structs) will still be converted via ToString, and string objects will be recorded directly.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also