express-nemo-error-logger

1.3.0 • Public • Published

express-nemo-error-logger

A middleware for express to add error logger

Options

Name Required Default value Description
createLogger func A function receiving the error and request object, returning a logger used to log errors.
eventTemplate func A function receiving the error and request object, returning a log event to be passed off to the logger.
excludeErrors [] An array of error names that should not be logged.

Dependencies (0)

    Dev Dependencies (9)

    Package Sidebar

    Install

    npm i express-nemo-error-logger

    Weekly Downloads

    28

    Version

    1.3.0

    License

    MIT

    Unpacked Size

    7.41 kB

    Total Files

    6

    Last publish

    Collaborators

    • looooopy
    • robertstigsson
    • patoka
    • jbarath
    • sohritz
    • mattias800