palantir / witchcraft-rust-server

A highly opinionated Rust embedded application server for RESTy APIs
Apache License 2.0
5 stars 7 forks source link

Support ad-hoc audit logs #128

Closed TheKeveloper closed 1 year ago

TheKeveloper commented 1 year ago

Before this PR

It was only possible to write audit logs in response to http requests.

After this PR

==COMMIT_MSG== Add global functions for manual audit logging ==COMMIT_MSG==

Adds audit_v3_log and audit_v3_log_blocking functions to the logging module. These methods use the global audit logger, which is instantiated on the first initialization of any loggers.

Closes #122

changelog-app[bot] commented 1 year ago

Generate changelog in changelog-dir>`changelog/@unreleased`</changelog-dir

Type

- [x] Feature - [ ] Improvement - [ ] Fix - [ ] Break - [ ] Deprecation - [ ] Manual task - [ ] Migration

Description

Add global functions for ad-hoc audit logging **Check the box to generate changelog(s)** - [x] Generate changelog entry