Refactoring the audit log message -> description field
Signed-off-by: Denislav Prinov <denislav.prinov@bosch.com>
This commit is contained in:
@@ -32,7 +32,7 @@ public @interface AuditLog {
|
||||
|
||||
String entity();
|
||||
|
||||
String message() default "";
|
||||
String description() default "";
|
||||
|
||||
String[] logParams() default {"*"};
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user