spring-audit-support

Logo

Spring Audit Support

License


The spring-audit-support repository comprises a library for audit logging in Spring Boot applications.

Spring Boot’s actuator module already has audit support, but it is basic. An audit event is a timestamp, a principal, a type given as a free text string and an unconstrained map of data, and the only repository supplied out of the box keeps events in memory until the application stops.

This library builds on that support rather than replacing it. It adds structure to the audit events, so that an event type has a defined and documentable shape, a chain that turns ordinary Spring application events into audit events, and a set of repositories that actually persist what is produced. Everything it publishes remains a Spring AuditEvent travelling through the actuator’s own infrastructure.


Copyright © 2026, Myndigheten för digital förvaltning - Swedish Agency for Digital Government (DIGG). Licensed under version 2.0 of the Apache License.