Chat Support
Loupe - Log - Monitor - Resolve
Loupe.Extensions.Logging Namespace / LoupeLogEnricher Class / GetJson<T> Method
The type of the state object
The state from the log message.
The LoupeLoggerProvider.

In This Topic
    GetJson<T> Method
    In This Topic
    Gets a JSON string for properties from the log message's state and any active scopes.
    Syntax
    'Declaration
     
    
    Public Shared Function GetJson(Of T)( _
       ByVal state As T, _
       ByVal provider As LoupeLoggerProvider _
    ) As String
    public static string GetJson<T>( 
       T state,
       LoupeLoggerProvider provider
    )

    Parameters

    state
    The state from the log message.
    provider
    The LoupeLoggerProvider.

    Type Parameters

    T
    The type of the state object

    Return Value

    A JSON string.
    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