$14.99
Description
Tracking and Logging user Actions is essential and even critical part of too many areas and in so many layers of an Application. So here I’m offering a Service, Module or Application – that does that – with Source Code Included. You could plug it in your own applications and services. It is intended to be used by Administrators – or the back end side of a Service and not be exposed to external users.
Actions Logging – Data Model Definitions
Audited App
- ID
- Name
Because most probably you will want to audit several Applications by one external module (service), the top level model is Applications.
Log Filter
Different Apps may have a lot of common Filters, but some will have different ones. They are characterized by:
- Key – Constant Field – specified by the context of an App
- App ID (to which Application they belong)
App Log
- Audited App ID
- Content – The Actual Content
- Log Level – values from:
- Trace = 0;
- Debug = 1;
- Info = 2;
- Warning = 3;
- Error = 4;
- Fatal = 5;
- Time Stamp – The Moment in time when the log occurred.
App Log <==> Log Filter – Link
This is a Many to Many Link between the Log and the Filter. It has the relational fields and the Value that is corresponding to the Key:
- App Log ID
- Log Filter ID
- Value – value depending on the different instances of the Key. Example Values may be
- Concrete screen/web page/ the user is on
- Button user has been clicked
- User has Entered/Exited some application location
- Operation Execution has started/finished
- The Value of some important to the User or Application – variable
Implementation in Spring Boot – Vaadin Web App
So here I am presenting you on implementation of the application With Spring Boot – Vaadin Web App.
List of Logs

List of Log Filters:

The Package includes
- Spring Boot – with REST endpoint for save and Vaadin Web UI for admin
- Client Lib with Spring Service that you could inject in your code – after you include the scanning of beans to the client package. The Lib also includes integrations with:
- Google Login Web App https://programtom.com/dev/product/google-login-to-program-tom-apps-micro-service/
- JWT Token (Regeneration) App https://programtom.com/dev/product/jwt-token-app-micro-service/
- Devices of Users https://programtom.com/dev/product/devices-of-users-micro-service-application/
Guidlien for package present here: https://programtom.com/dev/2023/11/29/vaadin-application-from-development-to-production/
Here is simple snippet that you could use in your apps to log something:
appLogService.saveAppLog(AppLog.AppLogBuilder.anAppLog()
.withContent(dbMission.getName())
.withLogLevel(LogLevel.DEBUG.ordinal())
.withAuditedApp(AuditedApp.withName(appName))
.withTimestamp(System.currentTimeMillis())
.withAppLogFilterLinks(List.of(
AppLogFilterLink.withNameAndValue(LogFilter.KEY_ACTION, "save_mission")
))
.build());
Please, ask any for any unanswered question you may have – before purchasing.
