log

Top  Previous  Next

Allows a log message to be generated from Lua.

Definition

gir.log(logLevel, source, message[, fileId, nodeId])

 

Name

Type

Description

logLevel

Promixis.Log

Constant that indicates level of severity.

source

string

The source of the error (for example Lua, or X10)

message

string

The message to print.

fileId

string

The file id of the node that produced the error. (Optional)

nodeId

int

The node id of the node that produced the error. ( Optional

 

Example

gir.log(Promixis.Log.OK, "Lua", "This is just a message")

 

Logs the Message "This is just a message" from source "Lua" and severity "Ok" in the Girder log.

Related

Promixis.Log

Availability

Lua