/express-pino-seq

An example Node.js Express app using `pino` logger together with `pino-seq`

Primary LanguageJavaScript

Express + Pino + Pino-Seq

This is a example app created by using express-generator and adding express-pino-logger and pino-seq packages.

It's used to test end-to-end logging from a node.js app to Seq, using the pino logging library.

Getting started

$ npm install

Make sure you have an instance of Seq running. The easiest way to do this is to run docker run --name seq -d -e ACCEPT_EULA=Y -p 5341:80 datalust/seq:latest

$ npm run start // pino-seq will send logs to localhost:5341 by default

Open localhost:3000 to browse your Express app, and generate request logs

Browse localhost:5341 to see your request logs in Seq.

Your request logs should look something like: Screenshot of Seq showing a log "request completed" from the Express app. Includes status code, headers, and response time