logs:api
The logs:api
tails the Docker logs of the api service,
and pipes them into pino-pretty.
Run npm run logs:api
in the root to trigger this script.
Under the hood, this will run:
Terminal
docker logs -n 20 -f api | pino-pretty -i pid,time,name,hostname
Prerequisites
This relies on the pino-pretty NPM package being available.
You can install it globally with:
Terminal
npm install --global pino-pretty