New-KrLogger
SYNOPSIS
Creates a new instance of Serilog.LoggerConfiguration.
SYNTAX
__AllParameterSets
New-KrLogger [<CommonParameters>]
ALIASES
This cmdlet has the following aliases, {{Insert list of aliases}}
DESCRIPTION
Creates a new instance of Serilog.LoggerConfiguration that can be used to configure logging sinks and enrichers.
EXAMPLES
EXAMPLE 1
$loggerConfig = New-KrLogger Creates a new logger configuration instance that can be used to add sinks and enrichers.
EXAMPLE 2
$loggerConfig = New-KrLogger | Add-KrSinkConsole | Add-KrEnrichProperty -Name ‘ScriptName’ -Values ‘Test’ Creates a new logger configuration instance, adds a console sink, and enriches logs with a property.
PARAMETERS
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
None. You cannot pipe objects to New-KrLogger.
{{ Fill in the Description }}
OUTPUTS
Instance of Serilog.LoggerConfiguration.
{{ Fill in the Description }}
Serilog.LoggerConfiguration
{{ Fill in the Description }}
NOTES
RELATED LINKS
{{ Fill in the related links here }}