1.0.0 • Published 6 years ago

hoshi-logger-middleware v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

hoshi-logger-middleware

Logging middleware for express. Combines important modules with important techniques:

  • morgan
  • winston
  • sentry
  • daily file rotation

important env vars

VarDescription
process.env.NODE_ENVStandard var, in prod console is not used
process.env.LOG_PATHThe path to the logs
process.env.LOG_LEVELThe log level to be logged
process.env.SENTRY_DSNThe Sentry DSN (to be looked up in sentry)