84cb74e8b3
* each log line is a json object * structured logging allows logs to be ingested by machines and the logs to be indexed and queried addresses #1105 * structured logging allows arbitrary properties to be appended to each log line, and ingestion of logs to remain robust * Structured logging provided by `pino` library * Add `express-pino-logger` dependency * Remove `debug`, `morgan`, and `morgan-debug` and replace with structured logging * `console.log` & `console.error` replaced with structured logging in backend * Remove `DEBUG` environment variable and replace with `LOG_LEVEL` - Note that there is a test which reads from a logged line on `stdout`. This is not robust, it would be better to use the childProcess.pid to look up the port number. * Log errors at points we explicitly send error to Sentry * Amend indentation of a couple of log messages to align indentation with others
59 lines
2.0 KiB
JSON
59 lines
2.0 KiB
JSON
{
|
|
"packageManager": "yarn@3.2.0",
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"name": "root",
|
|
"private": true,
|
|
"engines": {
|
|
"node": ">=14.0.0 <17.0.0"
|
|
},
|
|
"scripts": {
|
|
"build": "yarn workspaces foreach -ptv run build",
|
|
"build:public": "yarn workspaces foreach -ptv --no-private run build",
|
|
"lint": "eslint . --ext .js,.ts,.vue --max-warnings=0",
|
|
"helm:readme:generate": "./utils/helm/update-documentation.sh",
|
|
"prettier:check": "prettier --check .",
|
|
"prettier:fix": "prettier --write .",
|
|
"circleci:check": "circleci config validate ./.circleci/config.yml",
|
|
"dev:docker": "docker-compose -f ./docker-compose-deps.yml",
|
|
"dev:docker:up": "docker-compose -f ./docker-compose-deps.yml up -d",
|
|
"dev:docker:down": "docker-compose -f ./docker-compose-deps.yml down",
|
|
"dev": "yarn workspaces foreach -piv -j unlimited run dev",
|
|
"dev:no-server": "yarn workspaces foreach --exclude @speckle/server -piv -j unlimited run dev",
|
|
"dev:minimal": "yarn workspaces foreach -piv -j unlimited --include '{@speckle/server,@speckle/frontend,@speckle/shared}' run dev",
|
|
"gqlgen": "yarn workspaces foreach -piv -j unlimited --include '{@speckle/server,@speckle/frontend}' run gqlgen",
|
|
"dev:server": "yarn workspace @speckle/server dev",
|
|
"dev:frontend": "yarn workspace @speckle/frontend dev",
|
|
"dev:shared": "yarn workspace @speckle/shared dev",
|
|
"prepare": "husky install",
|
|
"postinstall": "husky install",
|
|
"cm": "cz"
|
|
},
|
|
"devDependencies": {
|
|
"@swc/core": "^1.2.222",
|
|
"@types/eslint": "^8.4.1",
|
|
"commitizen": "^4.2.5",
|
|
"cz-conventional-changelog": "^3.3.0",
|
|
"eslint": "^8.11.0",
|
|
"eslint-config-prettier": "^8.5.0",
|
|
"husky": "^7.0.4",
|
|
"lint-staged": "^12.3.7",
|
|
"pino-pretty": "^9.1.1",
|
|
"prettier": "^2.5.1",
|
|
"ts-node": "^10.9.1",
|
|
"tsconfig-paths": "^4.0.0"
|
|
},
|
|
"resolutions": {
|
|
"tslib": "^2.3.1",
|
|
"core-js": "3.22.4",
|
|
"graphql": "^15.3.0",
|
|
"typescript": "^4.8.4"
|
|
},
|
|
"config": {
|
|
"commitizen": {
|
|
"path": "cz-conventional-changelog"
|
|
}
|
|
}
|
|
}
|