User Tools

Site Tools


mod-functions:log

This is an old revision of the document!


Logging functions

log

Creates an INFO entry in the mod's log file

myMod:log(logContent)

Parameters:

  • logContent (string): the content of the log entry to create

logWarning

Creates a WARNING entry in the mod's log file

myMod:logWarning(logContent)

Parameters:

  • logContent (string): the content of the log entry to create

logError

Creates an ERROR entry in the mod's log file

myMod:logError(logContent)

Parameters:

  • logContent (string): the content of the log entry to create

msgBox

Creates a modal message box to display a message to the player. This function is recommended for mod development only.

For this function to work, the user must manually set the field ModMsgBoxEnabled to true in the user settings file (usersetting.config). Otherwise, it will only create a new log entry, like the log function.

myMod:msgBox(msgBoxContent)

Parameters:

  • msgBoxContent (string): the content displayed in the message box
mod-functions/log.1559151534.txt.gz ยท Last modified: 2019/05/29 13:38 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki