Write-PSULog
SINOPSIS
Escribe un registro en el sistema de registro de PowerShell Universal.
SINTAXIS
Write-PSULog [-Message] <String> [-Feature <String>] [-Resource <String>] [-Level <AgentLogLevel>]
[-Properties <Hashtable>] [-Console] [<CommonParameters>]DESCRIPCIÓN
Escribe un registro en el sistema de registro de PowerShell Universal.
EJEMPLOS
Ejemplo 1
PS C:\> Write-PSULog -Message "Hello" -Level 'Error'Escribe un registro de error en el sistema de registro de PowerShell Universal.
PARÁMETROS
-Feature
La función que escribe el registro. Normalmente es el nombre del grupo de funciones. Por ejemplo, 'App' o 'API'.
-Level
El nivel del registro. Puede ser Error, Warning, Information o Debug.
-Message
El mensaje que se escribirá en el registro.
-Properties
Propiedades adicionales que se escribirán en el registro. Debe ser una tabla hash de pares clave/valor.
-Resource
El recurso al que se asociará este mensaje de registro. Puede ser una app, una API o un script.
-Console
También escribe la entrada de registro en la salida de la consola.
CommonParameters
Este cmdlet admite los parámetros comunes: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable y -ProgressAction. Para obtener más información, consulte about_CommonParameters.
ENTRADAS
Ninguna
SALIDAS
System.Object
NOTAS
ENLACES RELACIONADOS
Última actualización
¿Te fue útil?