Datarouter-changelog is a tool that records changes or user actions, which can be viewed on a simple UI.
<dependency>
<groupId>io.datarouter</groupId>
<artifactId>datarouter-changelog</artifactId>
<version>0.0.126</version>
</dependency>
You can install this module by adding its plugin to the WebappBuilder
.
.addPlugin(new DatarouterChangelogPluginBuilder(...)
...
.build()
Datarouter already records many changes or actions by default, but additional ones can be recorded by using the ChangelogRecorder
.
@Inject
private ChangelogRecorder changelogRecorder;
public void someMethod(){
// ...
changelogRecorder.record("changelogType", "name", "action", "username", "userToken", "comment");
}
Changelogs can also be published to third party services.
This library is licensed under the Apache License, Version 2.0 - see LICENSE for details.