Skip to content

Receive from Server

Mqx edited this page Oct 21, 2025 · 4 revisions

Receive Log Events

Use the following WebSocket endpoint for live log events. You can also subscribe to multiple channels at once or use no channel to subscribe to all channels at once.

Tip

Multiple channels (subscribe to Error and Warn simultaneously)

WS /console/log?channel=error&channel=warning

Example Log Event

{
  "data": {
    "timestamp": "2025-01-01T05:20:00.12345Z",
    "threadName": "Main",
    "threadId": "1234",
    "logLevel": "warn",
    "className": "",
    "simpleClassName": ""
  }
  "message": "Player joined the game",
  "errors": []
}

Logging Types

If you don't specify any channel, this will subscribe you to all log events.

WS /console/log

Debug

This will subscribe you to only receive DEBUG log events.

WS /console/log?channel=debug

Info

This will subscribe you to only receive INFO log events.

WS /console/log?channel=info

Warn

This will subscribe you to only receive WARN log events.

WS /console/log?channel=warn

Error

This will subscribe you to only receive ERROR log events.

WS /console/log?channel=error

Clone this wiki locally