Set-KrDefaultLogger

SYNOPSIS

Sets the logger for the current session.

SYNTAX

Set-KrDefaultLogger [-Name] <String> [<CommonParameters>]

DESCRIPTION

Sets the specified logger as the current logger for the session.

EXAMPLES

EXAMPLE 1

Set-KrDefaultLogger -Logger $myLogger
PS> $myLogger | Set-KrDefaultLogger
Sets the specified logger as the current logger for the session.

EXAMPLE 2

$myLogger | Set-KrDefaultLogger
Sets the specified logger as the current logger for the session.

PARAMETERS

-Name

The name of the logger to set as the default logger.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

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

Instance of Serilog.ILogger

OUTPUTS

None. This cmdlet does not return any output.

NOTES