@friggframework/schemas 2.0.0-next.112 → 2.0.0-next.113

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@friggframework/schemas",
3
- "version": "2.0.0-next.112",
3
+ "version": "2.0.0-next.113",
4
4
  "description": "Canonical JSON Schema definitions for Frigg Framework",
5
5
  "main": "index.js",
6
6
  "author": "",
@@ -41,5 +41,5 @@
41
41
  "middleware/",
42
42
  "index.js"
43
43
  ],
44
- "gitHead": "2346e78e4c68226a6647d472857c055d84b8f2e8"
44
+ "gitHead": "783d9f59b16663376c313b1bb4874d5efcb54a5a"
45
45
  }
@@ -621,18 +621,23 @@
621
621
  },
622
622
  "logging": {
623
623
  "type": "object",
624
- "description": "Logging configuration",
624
+ "description": "Logging configuration (ADR-048). An absent block changes nothing in the deployment.",
625
625
  "properties": {
626
626
  "level": {
627
627
  "type": "string",
628
- "description": "Log level",
629
- "enum": ["error", "warn", "info", "debug", "trace"],
628
+ "description": "Minimum log level, in lower or upper case. Sets FRIGG_LOG_LEVEL (when not info) and the Lambda application log level.",
629
+ "enum": ["trace", "debug", "info", "warn", "error", "fatal", "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL"],
630
630
  "default": "info"
631
631
  },
632
+ "retentionInDays": {
633
+ "type": "integer",
634
+ "description": "CloudWatch log retention for every Lambda log group, in days",
635
+ "enum": [1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, 2192, 2557, 2922, 3288, 3653]
636
+ },
632
637
  "format": {
633
638
  "type": "string",
634
- "description": "Log format",
635
- "enum": ["json", "text", "combined"],
639
+ "description": "Log format. Records are always JSON lines.",
640
+ "enum": ["json"],
636
641
  "default": "json"
637
642
  }
638
643
  },
@@ -715,7 +720,8 @@
715
720
  }
716
721
  },
717
722
  "logging": {
718
- "level": "info"
723
+ "level": "info",
724
+ "retentionInDays": 30
719
725
  }
720
726
  }
721
727
  ]
@@ -299,14 +299,14 @@
299
299
  "minLength": 32
300
300
  }
301
301
  },
302
- "LOG_LEVEL": {
303
- "value": "debug",
302
+ "FRIGG_LOG_LEVEL": {
303
+ "value": "DEBUG",
304
304
  "required": false,
305
- "description": "Application log level",
305
+ "description": "Minimum log level (ADR-048)",
306
306
  "validation": {
307
- "enum": ["error", "warn", "info", "debug", "trace"]
307
+ "enum": ["TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL"]
308
308
  },
309
- "defaultValue": "info"
309
+ "defaultValue": "INFO"
310
310
  }
311
311
  },
312
312
  "integrations": {