Open bryphe opened 5 years ago
I would like to see info
, I'm not sure what trace
means though, I've never used it. What is the purpose of that level?
trace
is mainly for debugging - it prints to stderr
with the message + stack trace for convenience. Helpful when debugging, or if there is some corner case you hit that you want to make visible in the logs.
It'd be basically debug
but tagged with a stacktrace: Printexc.raw_backtrace_to_string(Printexc.get_raw_backtrace())
For the
Console
API, there are a few log levels that are missing when comparing to theNode
API, specifically:trace
info
Would it make sense to these in the Console API here? https://github.com/facebookexperimental/reason-native/blob/0b6adb98152225e87295cc1d2fbc984b68f68c7c/src/console/library/Console.re#L9