Skip to main content

QALogsServer

The QA logs server is what allows our QA team to view the server logs

When it registers a server log, it sends it to the client

To start:

local QALogsServer = Import("QALogsServer")

QALogsServer:Init(groupId, rankNumber)

Note, you also need to init the client QALogs

Functions

new

QALogsServer.new(
newGroupIdnumber,--

The group id to check for

newRankNumbernumber--

The rank number to check for

) → ()

Creates the QALogsServer

GetLastMessages

QALogsServer:GetLastMessages(
playerPlayer--

The player to check for

) → ()

Returns the last 100 messages

Show raw api
{
    "functions": [
        {
            "name": "new",
            "desc": "Creates the QALogsServer",
            "params": [
                {
                    "name": "newGroupId",
                    "desc": "The group id to check for",
                    "lua_type": "number"
                },
                {
                    "name": "newRankNumber",
                    "desc": "The rank number to check for",
                    "lua_type": "number"
                }
            ],
            "returns": [],
            "function_type": "static",
            "source": {
                "line": 50,
                "path": "src/qalogs/src/Server/QALogsServer.lua"
            }
        },
        {
            "name": "GetLastMessages",
            "desc": "Returns the last 100 messages",
            "params": [
                {
                    "name": "player",
                    "desc": "The player to check for",
                    "lua_type": "Player"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 91,
                "path": "src/qalogs/src/Server/QALogsServer.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "QALogsServer",
    "desc": "The QA logs server is what allows our QA team to view the server logs\n\nWhen it registers a server log, it sends it to the client\n\nTo start:\n```lua\nlocal QALogsServer = Import(\"QALogsServer\")\n\nQALogsServer:Init(groupId, rankNumber)\n```\n\nNote, you also need to init the client [QALogs]",
    "source": {
        "line": 17,
        "path": "src/qalogs/src/Server/QALogsServer.lua"
    }
}