@apolitical/logger 2.0.0-beta.4 → 2.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  Node.js module to expose Apolitical's logger service
4
4
 
5
+ ## Requirements
6
+
7
+ Requires the following to run:
8
+
9
+ - [node.js][node] 16.13.2+
10
+ - [yarn][yarn]
11
+
12
+ [node]: https://nodejs.org/en/download/
13
+ [yarn]: https://classic.yarnpkg.com/en/docs/install
14
+
5
15
  ## Installation
6
16
 
7
17
  Install with `yarn`:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/logger",
3
- "version": "2.0.0-beta.4",
3
+ "version": "2.0.0-beta.5",
4
4
  "description": "Node.js module to expose Apolitical's logger service",
5
5
  "author": "Apolitical Group Limited <engineering@apolitical.co>",
6
6
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  "husky": "7.0.4",
35
35
  "jest": "27.4.7",
36
36
  "jest-junit": "13.0.0",
37
- "lint-staged": "12.1.7"
37
+ "lint-staged": "12.2.0"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">=16.13.2"
@@ -54,7 +54,9 @@ module.exports =
54
54
  function createWrapper(logger) {
55
55
  function where(filePath, method) {
56
56
  const file = path.basename(filePath);
57
- const childLogger = logger.child({ labels: { file, method } });
57
+ const childLogger = logger.child({
58
+ labels: Object.assign({}, logger.labels, { file, method }),
59
+ });
58
60
  return createWrapper(childLogger);
59
61
  }
60
62
  function write(message) {