Log
Writes a line to the server log, prefixed [lua].
Every argument is converted with tostring and joined with spaces, like print - and print is this function in a
game mode. The line lands in the server’s log (the console and the log file), never in a player’s chat.
Syntax
Section titled “Syntax”Log(...)| Parameter | Type | |
|---|---|---|
... |
any | the values to write |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”Log("spawned", GetPlayerName(pid), "at", x, y, z)See also
Section titled “See also”SendClientMessage · the Server and timers group of the index
