najamelan/slog_unwraps

Create exits, which just logs and exits, but not panics

najamelan opened this issue · 0 comments

This can be usefull if you just want to exit with an error, without panicking, as well as when you want to set up a panic hook that logs all panics, and when unwraps logs, you don't want to do that twice...

exits -> just takes log
exitc -> takes log, u8 exit code