接口 LogProperties实验性

A properties class for the global instance of the logger object. While the logger object is available through the ExtensionContext - using the global instance allows the creator to use this properties class to perform direct server->client messaging and broadcasts.

interface LogProperties {
    player?: Player;
    tags?: string[];
}

属性

属性

player?: Player

Direct a log message to a specific player. If no player is specified, then all players will receive the message

tags?: string[]

Add additional tags to the log message which can be used by the client session to filter/search in the log window