Logging migration to Pino library (#1630)

* feat: add new logger based on Pino library

* feat: changes on api/init.ts to use Pino logging library

* feat: changes on helpers.ts to use Pino logging library

* feat: changes on event-stream/event-server.ts to use Pino logging library

* feat: changes on API tests to use Pino logging library

* feat: changes on API codebase to use Pino logging library

* fix: lint

* feat: changes on logger

* feat: remove logError function

* feat: change logger.verbose to logger.debug

* fix: lint

* fix: first argument on logger should be an object

* feat: add logging information to ErrorRequestHandler

* fix: remove logger from ErrorRequestHandler

* fix: remove try-catch statement

Errors shoud be handled by the ErrorRequestHandler middleware

* feat: disable automatic 'request completed' logging
This commit is contained in:
Chris Guimarães
2023-05-03 17:25:46 +01:00
committed by GitHub
parent a6c8f16b6c
commit 14bb9f2c6d
69 changed files with 890 additions and 1075 deletions

View File

@@ -165,7 +165,6 @@
"evt": "1.10.1",
"express": "4.17.3",
"express-list-endpoints": "5.0.0",
"express-winston": "4.2.0",
"getopts": "2.3.0",
"http-proxy-middleware": "2.0.1",
"jsonc-parser": "3.0.0",
@@ -179,6 +178,9 @@
"pg": "8.7.1",
"pg-copy-streams": "5.1.1",
"pg-cursor": "2.7.1",
"pino": "8.11.0",
"pino-http": "8.3.3",
"pino-pretty": "10.0.0",
"postgres": "3.3.1",
"prom-client": "14.0.1",
"rpc-bitcoin": "2.0.0",
@@ -191,7 +193,6 @@
"ts-unused-exports": "7.0.3",
"typescript": "4.6.2",
"uuid": "8.3.2",
"winston": "3.6.0",
"ws": "7.5.9",
"zone-file": "2.0.0-beta.3"
},