Testing ts-log lib to manage logs
- Install deps
yarn
- Run the app
yarn dev
- Generate log on file in root folder /logs/domain
- Show logs on terminal
curl --location --request POST 'http://localhost:3000/domain' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "valid@email.com",
"password": "12345",
"id": "1"
}'
Generate a log from stackLog
middleware
- Write log on file
- Send log to client (browser)
- Show log on terminal
curl --location --request GET 'http://localhost:3000/fail'
Generate a log from stackLog
middleware
- Send log to client (browser)
curl --location --request GET 'http://localhost:3000/ok'