OutputServerLog
Jump to navigation
Jump to search
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
Returns true if successful, false otherwise.
Example
This example outputs client logins to the server log.
addEventHandler ( "onClientLogin", getRootElement(), "logClientLogin" ) function logClientLogin ( previous_account, current_account ) outputServerLog ( "Client "..getClientName ( source ).." logged in as "..getAccountName ( current_account ) ) end
See Also
- getMaxPlayers
- getServerConfigSetting
- getServerHttpPort
- getServerName
- getServerPassword
- getServerPort
- isGlitchEnabled
- setGlitchEnabled
- setMaxPlayers
- setServerConfigSetting
- setServerPassword
- shutdown