hoshi-logger-middleware

1.0.0 • Public • Published

hoshi-logger-middleware

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

  • morgan
  • winston
  • sentry
  • daily file rotation

important env vars

Var Description
process.env.NODE_ENV Standard var, in prod console is not used
process.env.LOG_PATH The path to the logs
process.env.LOG_LEVEL The log level to be logged
process.env.SENTRY_DSN The Sentry DSN (to be looked up in sentry)

Dependencies (5)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i hoshi-logger-middleware

    Weekly Downloads

    2

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • toovy