< Summary - Kestrun — Combined Coverage

Information
Class: Public.Logging.formatters.Get-KrJsonFormatter
Assembly: Kestrun.PowerShell.Public
File(s): /home/runner/work/Kestrun/Kestrun/src/PowerShell/Kestrun/Public/Logging/formatters/Get-KrJsonFormatter.ps1
Tag: Kestrun/Kestrun@9d3a582b2d63930269564a7591aa77ef297cadeb
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 20
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100

Metrics

File(s)

/home/runner/work/Kestrun/Kestrun/src/PowerShell/Kestrun/Public/Logging/formatters/Get-KrJsonFormatter.ps1

#LineLine coverage
 1<#
 2    .SYNOPSIS
 3        Returns new instance of Serilog.Formatting.Json.JsonFormatter.
 4    .DESCRIPTION
 5        Returns new instance of Serilog.Formatting.Json.JsonFormatter that can be used with File or Console sink.
 6    .INPUTS
 7        None
 8    .OUTPUTS
 9        Instance of Serilog.Formatting.Json.JsonFormatter
 10    .EXAMPLE
 11        PS> New-KrLogger | Add-KrSinkFile -Path 'C:\Data\Log\test.log' -Formatter (Get-KrJsonFormatter) | Register-KrLog
 12#>
 13function Get-KrJsonFormatter {
 14    [KestrunRuntimeApi('Everywhere')]
 15    [CmdletBinding()]
 16    [OutputType([Serilog.Formatting.Json.JsonFormatter])]
 17    param()
 018    [Serilog.Formatting.Json.JsonFormatter]::new()
 19}
 20

Methods/Properties

Get-KrJsonFormatter()