Skip to content

Log ​

The Log namespace provides helpers for writing script logs and reading collected log messages.


Interfaces ​

LogValue ​

The LogValue interface describes the corresponding object shape exposed by the declarations.

  • strstring - The str.
  • objany - The obj.

LogMessage ​

The LogMessage interface describes the corresponding object shape exposed by the declarations.

  • indexnumber - The index.
  • timenumber - The time.
  • valuesLogValue[] - The values.
  • strstring - The str.

Functions ​

Write(...args: any[])void ​

Writes a log message.

  • argsany[] - The values to write.

GetLog(lineNun?: number)LogMessage[] ​

Retrieves the log.

  • lineNunnumber (optional) - The line nun.

WARNING

Deprecated.

Returned:

  • LogMessage[] - An array with the matching values.

Global Functions ​

print(...args: any[])void ​

Writes a standard log message.

  • argsany[] - The values to write.

warn(...args: any[])void ​

Writes a warning log message.

  • argsany[] - The values to write.

error(...args: any[])void ​

Writes an error log message.

  • argsany[] - The values to write.