Get-KrJsonFormatter

SYNOPSIS

Returns new instance of Serilog.Formatting.Json.JsonFormatter.

SYNTAX

Get-KrJsonFormatter [<CommonParameters>]

DESCRIPTION

Returns new instance of Serilog.Formatting.Json.JsonFormatter that can be used with File or Console sink.

EXAMPLES

EXAMPLE 1

New-KrLogger | Add-KrSinkFile -Path 'C:\Data\Log\test.log' -Formatter (Get-KrJsonFormatter) | Register-KrLogger

PARAMETERS

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

Instance of Serilog.Formatting.Json.JsonFormatter

NOTES