New-SimplePSLogger
SYNOPSIS
Create new SimplePSLogger instance
SYNTAX
DESCRIPTION
You can create multiple loggers for one action but we recommend creating one single logger for your action SimplePSLogger logger automatically registers x loggers. Custom logging provider support will be added soon.
EXAMPLES
EXAMPLE 1
EXAMPLE 2
PARAMETERS
-Name
SimplePSLogger name which is used to identify current logger instnace Examples : your script name, unique task name etc. It will help you to analyze logs
-Configuration
SimplePSLogger configuratoin object, this will contain configurations for supported/reistred providers Configuration for each provider should be defined by creating new section/key with it's name
Example configuration object : $SimplePSLoggerConfig = @{ Name = "config-example" Providers = @{ File = @{ LiteralFilePath = "G:\Git\simple-ps-logger\Examples\example-with-config-file\example-with-config.log" } } }
-SetDefault
Set Default
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.