Skip to content

Commit

Permalink
feat(logger): Add possibility to log source code reference
Browse files Browse the repository at this point in the history
  • Loading branch information
vanthome committed May 21, 2021
1 parent 956e17d commit 77f728a
Show file tree
Hide file tree
Showing 9 changed files with 185 additions and 163 deletions.
2 changes: 2 additions & 0 deletions packages/logger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ These transports can be added and configured with a corresponding property in
the options hash:

```json
"loggerName": "somelogger", // Optional name
"sourcePointer": true, // Whether the source file and line where the log statement was issued should be logged [default: `false`]
"console": {
"handleExceptions": false,
"level": "silly",
Expand Down
171 changes: 84 additions & 87 deletions packages/logger/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@
"cls-hooked": "^4.2.2",
"cls-rtracer": "^2.6.0",
"winston": "^3.3.3",
"winston-elasticsearch": "^0.15.2"
"winston-elasticsearch": "^0.15.4"
},
"devDependencies": {
"@types/jest": "^26.0.20",
"@types/node": "^14.14.31",
"@types/jest": "^26.0.23",
"@types/node": "^15.3.0",
"@types/should": "^13.0.0",
"coveralls": "^3.1.0",
"jest": "^26.6.3",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"rimraf": "^3.0.2",
"ts-jest": "^26.5.2",
"ts-jest": "^26.5.6",
"tslint": "^6.1.3",
"typescript": "^4.2.2"
"typescript": "^4.2.4"
},
"scripts": {
"build": "npm-run-all build:clean build:compile",
Expand Down
Loading

0 comments on commit 77f728a

Please sign in to comment.