diff --git a/package.json b/package.json index d18b686..5fc155d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bun-ffi-gen", - "version": "1.1.1", + "version": "1.1.2", "module": "lib/index.ts", "description": "FFI bindings generator for Bun", "type": "module", diff --git a/src/log.ts b/src/log.ts index f9d0e30..6bf2551 100644 --- a/src/log.ts +++ b/src/log.ts @@ -6,6 +6,10 @@ export enum LogLevel { export let logLevel = LogLevel.info; +export function setLogLevel(lvl: LogLevel) { + logLevel = lvl; +} + export function logVerbose(...args: any[]) { if (logLevel === LogLevel.verbose) console.log("[verbose]", ...args); }