Refactoring the audit log message -> description field

Signed-off-by: Denislav Prinov <denislav.prinov@bosch.com>
This commit is contained in:
Denislav Prinov
2025-04-22 08:11:53 +03:00
parent 7486f54291
commit 7aa33cd96b
16 changed files with 50 additions and 50 deletions

View File

@@ -32,7 +32,7 @@ public @interface AuditLog {
String entity();
String message() default "";
String description() default "";
String[] logParams() default {"*"};

View File

@@ -75,8 +75,8 @@ public class AuditLoggingAspect {
final String methodName = joinPoint.getSignature().getName();
final String logMessage = String.format(
"Type: %s, Method: %s - Message: %s - Parameters: %s - Response: %s",
auditLog.type(), methodName, auditLog.message(), paramsToLog, resultMessage
"Type: %s, Method: %s - Description: %s - Parameters: %s - Response: %s",
auditLog.type(), methodName, auditLog.description(), paramsToLog, resultMessage
);
switch (logLevel) {