Loupe - Log - Monitor - Resolve
Gibraltar.Agent.Logging Namespace / MessageSourceProvider Class / OnMessageSourceCalculate Method
The full name of the class (with namespace) whose method issued the log message.
The simple name of the method which issued the log message.
The name of the file containing the method which issued the log message.
The line within the file at which the log message was issued.

In This Topic
    OnMessageSourceCalculate Method (MessageSourceProvider)
    In This Topic
    Override to adjust message source information after they have been automatically calculated using the default algorithm
    Syntax
    'Declaration
     
    
    <NullableContextAttribute(1)>
    Protected Overridable Sub OnMessageSourceCalculate( _
       ByRef className As String, _
       ByRef methodName As String, _
       ByRef fileName As String, _
       ByRef lineNumber As Integer _
    ) 
    [NullableContext(1)]
    protected virtual void OnMessageSourceCalculate( 
       ref string className,
       ref string methodName,
       ref string fileName,
       ref int lineNumber
    )

    Parameters

    className
    The full name of the class (with namespace) whose method issued the log message.
    methodName
    The simple name of the method which issued the log message.
    fileName
    The name of the file containing the method which issued the log message.
    lineNumber
    The line within the file at which the log message was issued.
    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