functions/utils/Set-DefaultMessageFormatter.ps1

1
2
3
4
5
6
7
8
9
function Set-DefaultMessageFormatter {
    
    param(
        [Parameter(Mandatory = $true)]
        [string]$Template
    )
    
    $global:TextFormatter = [Serilog.Formatting.Display.MessageTemplateTextFormatter]::new($Template)
}