Logging

Sometimes it is very useful to print on screen or file some information about script execution. There are various function to do so.

log ( "log message" )
 * Use log function to put some text to log.log file (will be created next to *.exe file). This function accept only strings:

print ( 4, nil, object )
 * Use print function to print out some info to output window of ZeroBrane Ide. This function support any count of arguments of any type:

logUI ( "log message" ) printUI ( 4, nil, object )
 * Use logUI or printUI functions to print out text to in-game event log window:

spam ( 4, nil, object )
 * Use spam function to output text to all sources: