outputServerLog
Client-side
Server-side
Shared
This page is incomplete! Help wanted!
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
outputServerLog ( )Code Examples
server
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 )