Optional
format?: ConnectionsFormatOptions[]Custom formatting for the extra information provided when logging client connections. (The part in parenthesis after their username.)
The client's client id.
The client's ip address.
The client's round-trip ping.
The client's current room code.
The client's language.
{
// Hide the client's round-trip ping.
"format": ["id", "ip", "room"]
}
// => weakeyes (140, 127.0.0.1, ABCDEF)
["id", "ip", "ping", "room"]
Whether to hide sensitive information from logging, such as ip addresses.
false
Logging options for logging players in-game.
Optional
format?: PlayerFormatOptions[]Custom formatting for the extra information provided when players are logged. (The part in parenthesis after the player's name.)
The client ID of the player.
The player's round-trip ping.
Whether this player is host. (Not displayed if the player is not host.)
{
// Don't show the player's ping or whether they are the host.
"format": ["id"]
}
// => weakeyes (104)
["id", "ping", "ishost"]
Logging options for game rooms.
Optional
format?: RoomFormatOptions[]Custom formatting for the extra information provided when rooms are logged. (The part in parenthesis after the game code.)
The total number of players currently connected to the room.
The map that the room is currently playing.
Whether or not the room is in SaaH.
{
// Don't show any extra information about the room.
"format": []
}
// => ABCDEF
["players", "map", "issaah", "privacy"]
Generated using TypeDoc
Logging options for client connections.