@trojs/logger 0.4.3 → 0.4.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
@@ -94,3 +94,6 @@ More info:
94
94
  * location (default: combined.log)
95
95
 
96
96
  ## console
97
+
98
+ * level (default: trace)
99
+ * debug (default: false, stacktrace in console)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@trojs/logger",
3
3
  "description": "Winston logger for TroJS",
4
- "version": "0.4.3",
4
+ "version": "0.4.5",
5
5
  "author": {
6
6
  "name": "Pieter Wigboldus",
7
7
  "url": "https://trojs.org/"
@@ -39,7 +39,7 @@
39
39
  "eslint-config-prettier": "^9.1.0",
40
40
  "eslint-plugin-html": "^8.1.1",
41
41
  "eslint-plugin-import": "^2.29.1",
42
- "eslint-plugin-jsdoc": "^48.8.3",
42
+ "eslint-plugin-jsdoc": "^50.0.0",
43
43
  "eslint-plugin-jsx-a11y": "^6.9.0",
44
44
  "eslint-plugin-n": "^17.9.0",
45
45
  "eslint-plugin-prettier": "^5.2.1",
@@ -6,6 +6,7 @@ export default ({ winston, logger }) => {
6
6
  return new winston.transports.Console({
7
7
  level: logger?.level || defaultLevel,
8
8
  format: winston.format.combine(
9
+ winston.format.errors({ stack: logger?.debug ?? false }),
9
10
  winston.format(
10
11
  stackDriver({ level: logger?.level, defaultLevel })
11
12
  )(),