Prints to the debug console and to the LuaLogOutput.txt file available in the application cache directory.
This contrasts with the general lua "print" function that outputs to stdout, which is generally not easily accessible.
The method takes a variable number of args. Each argument is translated into a string and concatenated before output.
Non-printable types will be replaced by a string token (e.g. [function]).
If a table is passed that contains a "toString()" method, that method will be automatically called to stringify the table.
Parameters
...args: any[]
variadic list of arguments that will be string-translated and then concatenated before output.
Returns void
Example
Account = {name="Jen", rank=10} functionAccount:toString() returnstring.format("name:%s, rank:%i", self.name, self.rank) end
Prints to the debug console and to the LuaLogOutput.txt file available in the application cache directory. This contrasts with the general lua "print" function that outputs to stdout, which is generally not easily accessible. The method takes a variable number of args. Each argument is translated into a string and concatenated before output. Non-printable types will be replaced by a string token (e.g. [function]). If a table is passed that contains a "toString()" method, that method will be automatically called to stringify the table.