feat: add EXIT log level

This commit is contained in:
Rainer Killinger
2020-03-10 10:54:09 +01:00
committed by Rainer Killinger
parent 3fb99ad896
commit edc6e6fad5
6 changed files with 923 additions and 932 deletions

View File

@@ -25,6 +25,8 @@ For example `STAPPS_LOG_LEVEL=17` is 16 + 1 and would log everything that is `OK
If you want to use logger in production (`NODE_ENV=production`) and allow all transports to fail set
`ALLOW_NO_TRANSPORT` to `true`.
Additionally setting the environment variable `STAPPS_EXIT_LEVEL` which works in the same manner as `STAPPS_LOG_LEVEL` will terminate your process after logging at the selected level(s) (usefull for integration tests). It will be ignored in afore mentioned productive environments.
## SMTP
This class also provides a simple implementation of an SMTP transport which can be used as a