Log

function Log(level: string, message: string, ...optionalParameters: any[]): void

The Log function writes a message to the browser console.

Parameter

Name

Type

Description

level

string

Values:

  • Error
  • Warning
  • Info
  • Debug

message

string

Message text

optionalParameters [ Optional, Rest Parameter ]

any[]

Additional parameters can be passed, which are displayed in the browser console in the context of the message.

Return value

Type

Description

void

No return value.

NuGet package: Beckhoff.TwinCAT.HMI.Functions

Log 1:

NuGet packages are available from version 1.12.

Log 2:

Available from version 1.12