Logger.d.ts (445B)
1 // generated by diplomat-tool 2 import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; 3 4 5 /** 6 * An object allowing control over the logging used 7 */ 8 9 10 export class Logger { 11 get ffiValue(): pointer; 12 13 14 /** 15 * Initialize the logger using `simple_logger` 16 * 17 * Requires the `simple_logger` Cargo feature. 18 * 19 * Returns `false` if there was already a logger set. 20 */ 21 static initSimpleLogger(): boolean; 22 }