Skip to content
Snippets Groups Projects

Restructure and improved logs and audit

Merged Pieter van Staden requested to merge 13-improve-opensearch-mapping into main
42 files
+ 701
436
Compare changes
  • Side-by-side
  • Inline
Files
42
+ 1
3
@@ -204,9 +204,7 @@ API documentation will eventually be generated from doc tags in your structs. Th
# API Logger
API uses the go-utils/logger at the moment. Eventually it will be possible to use other loggers, and customise api logs. Audits can already be customised using ```api.WithAuditor()```.
By default, go-utils/logger writes JSON records. At the start of the example api main function the logger is configured to write console format and log at DEBUG level... more to come on this front too including triggers for full debug in production on selected handlers or specific events, and logging different levels for selected code packages to avoid log clutter without having to remove debug from code.
API Logs are written from global variables using logs.LogIncomingAPIRequest()
# Router Path Parameters
Loading