@maplibre/native-ffi
    Preparing search index...

    Interface LogHandler

    A log callback, for setLogCallback().

    The callback runs asynchronously on the JavaScript thread that registered it, after native queues the call.

    See mln_log_handler in the C API reference.

    interface LogHandler {
        callback: (
            severity: LogSeverity,
            event: LogEvent,
            code: bigint,
            message: string,
        ) => void;
        platformSeverities?: number;
    }
    Index
    callback: (
        severity: LogSeverity,
        event: LogEvent,
        code: bigint,
        message: string,
    ) => void
    platformSeverities?: number

    The severities that also go to the platform's log, as they do without a callback. 0 sends none. A message of these severities goes to the platform's log even when the handler's queue can't accept it.