infinyon / fluvio-client-wasm

Apache License 2.0
11 stars 12 forks source link

[Merged by Bors] - feature/267-wasm-console-log #300

Closed asheera-dolinsky closed 2 years ago

asheera-dolinsky commented 2 years ago

I added a proper logging level logger implementation that is callable from JS. Example: Fluvio.setupDebugging(false, 'Info'); Where the first argument is the full WASM logging of EVERYTHING and the second argument is the logging level for fluvio-client-wasm itself. Employ macros such as info! to make use of it.

The logging levels: pub enum JsLevel { Error = "Error", Warn = "Warn", Info = "Info", Debug = "Debug", Trace = "Trace" }

Resolves #267

asheera-dolinsky commented 2 years ago

Hey guys, could you please review again, optionally test it and merge if possible? @simlay @morenol

asheera-dolinsky commented 2 years ago

Hey, this can be merged, I fixed the final comment. @morenol @simlay

morenol commented 2 years ago

bors r+

bors[bot] commented 2 years ago

Pull request successfully merged into main.

Build succeeded: