Skip to content

function serverLog

This function will log the text into server.log file.
Original: serverLog

Declaration

async def serverLog(text : str)

Parameters

str text: the text message that you want to append to server.log file.

Source code in src/pyg2o/functions/game.py
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
async def serverLog(text : str):
    """
    This function will log the text into server.log file.
    Original: [serverLog](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/game/serverLog/)

    ## Declaration
    ```python
    async def serverLog(text : str)
    ```
    ## Parameters
    `str` **text**: the text message that you want to append to server.log file.
    """
    data = f'return {get_call_repr()}'

    server = await PythonWebsocketServer.get_server()
    result = await server.make_request(data)
    return result