axiom-crypto / halo2-browser

Monorepo of tools for using the halo2 proving system in-browser using WASM.

Home Page:https://halo2repl.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make console redirection more generic

rpalakkal opened this issue · comments

Currently https://github.com/axiom-crypto/halo2-browser/blob/f3d696474d4be04809d6e3266c1841d2dc96d6bf/halo2-lib-js/src/shared/log.ts support redirection for log and time/timeEnd manually. Instead we should just take in a "logger" object that implements the console interface and then avoid assigning all the different console functions separately (instead, just override the entire console).