< Back

Set-LoggingCustomTarget

Sat Jan 18, 2020 9:51 am

NAME Set-LoggingCustomTarget



SYNOPSIS

Sets a folder as custom target repository





SYNTAX

Set-LoggingCustomTarget [-Path] <String> [<CommonParameters>]





DESCRIPTION

This function sets a folder as a custom target repository.

Every *.ps1 file will be loaded as a custom target and available to be enabled for logging to.





PARAMETERS

-Path <String>

A valid path containing *.ps1 files that defines new loggin targets



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-LoggingCustomTarget -Path C:\\Logging\\CustomTargets















RELATED LINKS

https://logging.readthedocs.io/en/lates ... mTarget.md

https://logging.readthedocs.io/en/lates ... Targets.md

https://logging.readthedocs.io/en/lates ... ite-Log.md

https://github.com/EsOsO/Logging/blob/m ... Target.ps1