Skip to main content
Skip to main content

Logging

Logging

Description

This class handles all logging

Functions

error

Description

Prints an error to console and logfile, prepends 'Error:'

Definition

error(string errorMessage, any ...)

Arguments

stringerrorMessagethe warning message. Can contain string-format placeholders
any...variable number of parameters. Depends on placeholders in warning message

fatal

Description

Prints an fatal error to console and logfile and stops the game. To be used for unrecoverable errors only

Definition

fatal(string fatalMessage, any ...)

Arguments

stringfatalMessagethe error message. Can contain string-format placeholders
any...variable number of parameters. Depends on placeholders in fatal message

i3dError

Description

Prints an i3d node error to console and logfile, prepends 'Error ( ()):'

Definition

i3dError(entityId node, string errorMessage, any ...)

Arguments

entityIdnodei3d node entityId to include in the output
stringerrorMessagethe error message. Can contain string-format placeholders
any...variable number of parameters. Depends on placeholders in error message

i3dInfo

Description

Prints an i3d node info to console and logfile, prepends 'Info ( ()):'

Definition

i3dInfo(entityId node, string infoMessage, any ...)

Arguments

entityIdnodei3d node entityId to include in the output
stringinfoMessagethe warning message. Can contain string-format placeholders
any...variable number of parameters. Depends on placeholders in warning message

i3dWarning

Description

Prints an i3d node warning to console and logfile, prepends 'Warning ( ()):'

Definition

i3dWarning(entityId node, string warningMessage, any ...)

Arguments

entityIdnodei3d node entityId to include in the output
stringwarningMessagethe warning message. Can contain string-format placeholders
any...variable number of parameters. Depends on placeholders in warning message

info

Description

Prints an info to console and logfile, prepends 'Info:'

Definition

info(string infoMessage, any ...)

Arguments

stringinfoMessagethe warning message. Can contain string-format placeholders
any...variable number of parameters. Depends on placeholders in warning message

warning

Description

Prints a warning to console and logfile, prepends 'Warning:'

Definition

warning(string warningMessage, any ...)

Arguments

stringwarningMessagethe warning message. Can contain string-format placeholders
any...variable number of parameters. Depends on placeholders in warning message

xmlError

Description

Prints a xml error to console and logfile, prepends 'Error ():'

Definition

xmlError(table|integer|string xmlFile, string errorMessage, any ...)

Arguments

tableintegerstringxmlFilexml file object or xml handle
stringerrorMessagethe error message. Can contain string-format placeholders
any...variable number of parameters. Depends on placeholders in error message

xmlInfo

Description

Prints a xml info to console and logfile, prepends 'Info ():'

Definition

xmlInfo(table|integer|string xmlFile, string infoMessage, any ...)

Arguments

tableintegerstringxmlFilexml file object or xml handle
stringinfoMessagethe warning message. Can contain string-format placeholders
any...variable number of parameters. Depends on placeholders in warning message

xmlWarning

Description

Prints a xml warning to console and logfile, prepends 'Warning ():'

Definition

xmlWarning(table|integer|string xmlFile, string warningMessage, any ...)

Arguments

tableintegerstringxmlFilexml file object or xml handle
stringwarningMessagethe warning message. Can contain string-format placeholders
any...variable number of parameters. Depends on placeholders in warning message