1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-26 05:03:33 +00:00

Support for logging from NAPI (#14335)

* Support for log to electron console from NAPI

* Fix test mock
This commit is contained in:
Daniel García
2025-04-21 12:21:00 +02:00
committed by GitHub
parent 8de42caf04
commit 86b0a6aa35
6 changed files with 102 additions and 0 deletions

View File

@@ -185,3 +185,13 @@ export declare namespace crypto {
export declare namespace passkey_authenticator {
export function register(): void
}
export declare namespace logging {
export const enum LogLevel {
Trace = 0,
Debug = 1,
Info = 2,
Warn = 3,
Error = 4
}
export function initNapiLog(jsLogFn: (err: Error | null, arg0: LogLevel, arg1: string) => any): void
}