In our cli tool we would like to have a custom error codes depending on some internal reason. However in zerologlog.Fatal is always implicitly calls os.Exit(1), so it looks like it should be avoided.
Is it possible to still have FATAL log level but with custom error codes?
In our cli tool we would like to have a custom error codes depending on some internal reason. However in
zerolog
log.Fatal
is always implicitly callsos.Exit(1)
, so it looks like it should be avoided.Is it possible to still have FATAL log level but with custom error codes?