pub unsafe extern "C" fn ts_parser_set_logger(
    self_: *mut TSParser,
    logger: TSLogger
)
Expand description

Set the logger that a parser should use during parsing.

The parser does not take ownership over the logger payload. If a logger was previously assigned, the caller is responsible for releasing any memory owned by the previous logger.