outputServerLog
Client-side
Server-side
Shared
Manual Review Required
Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.
This outputs a line of text to the server's log. This could be useful for debugging.
Syntax
bool outputServerLog ( string text )Required Arguments
- text: The text to be output to the log.
Returns
- bool: value
Returns true if successful, false otherwise.
Code Examples
shared
Example 1:This example outputs client logins to the server log.
function logClientLogin ( previous_account, current_account ) outputServerLog ( "Client " .. getPlayerName ( source ) .. " logged in as " .. getAccountName ( current_account ) )endaddEventHandler ( "onPlayerLogin", root, logClientLogin )