Skip to content

ntcore-ts / @ntcore-ts/client / setLogHandler

Function: setLogHandler() ​

setLogHandler(logHandler): void

Defined in: util/logger.ts:54

Sends log lines to a custom handler instead of the console, e.g. to forward them to your own logger. Level filtering still applies before the handler is called.

Parameters ​

logHandler ​

LogHandler | null

The handler, or null to log to the console again.

Returns ​

void

Released under the MIT License.