Write-KFLog

Syntax

Write-KFLog 
  [-Message] <message> 
  [[-LogLevel] <log-level>] 
  [-ThrowErrors[:$true]]

Support

>= kenaflow 1.0.0

Return

Nothing.

Description

This Cmdlet writes the specified <message> to the log of kenaflow.

Parameters

-Message <message>

The message to be logged.

-LogLevel <log-level>

Specifies the severity of the log entry.

Possible values are:

  • Debug
  • Verbose
  • Normal
  • Warning
  • Error
  • Critical

Critical will cause an error message and e-mail to the administrators.

[-ThrowErrors[:$true]]

This is a default parameter for all kenaflow cmdlets. If set to $true (default!) the engine will pass exception within the cmdlet to the script for further handling.

Example

Write-KFLog "Hello kenaflow!"