-
Notifications
You must be signed in to change notification settings - Fork 49
Targets
Massimo Bonvicini edited this page Aug 27, 2019
·
2 revisions
The Targets property stores the used logging targets, it's where you define where to route your messages.
Keys of the hashtable depends on the target you are configuring. The module ships with 8 targets but you can write your own for specific usage.
It lets define a folder to load custom targets.
> Set-LoggingCustomTarget -Path 'C:\temp\'
> Get-LoggingAvailableTarget
Name Value
---- -----
Console {Configuration, ParamsRequired, Logger}
ElasticSearch {Configuration, ParamsRequired, Logger}
File {Configuration, ParamsRequired, Logger}
Slack {Configuration, ParamsRequired, Logger}
MyCustomTarget {Configuration, ParamsRequired, Logger}