wasmx / wasm-chisel

Some useful utilities to transform WebAssembly binaries.
Apache License 2.0
55 stars 11 forks source link

CLI: Introduce logging macro and global log level #153

Closed jakelang closed 5 years ago

jakelang commented 5 years ago

Closes #68.

Pulled from the CLI rewrite. Also writes all user-facing messages to stderr, as primary program output goes in stdout (we don't have any as output is written to a file).

NOTE: Yes we are writing debug messages to stderr. The new CLI does this because unix mode will write wasm binaries to stdout unless otherwise specified. Does it matter in this PR? No, it will be overwritten by the other PR anyway.