Skip to content
seyyed edited this page Jul 31, 2021 · 5 revisions

This package is an interface of Audit Project that implement in Audit Project if you need to this project you must generate a bean From It in your Project and add the project To your Pom File

Audit in Microservice

Audit used For log and used the Log anotation in Framework for CrossCutting Audit Project can log in File, Kafka ( used From Kafka client Project ) , Elastic search ( used From Elastic search client )

Audit Maven Central

<dependency>
            <groupId>com.nicico.cost</groupId>
            <artifactId>audit</artifactId>
            <version>1.0.2-Release</version>
</dependency>

Audit Project is an Implementation Of this package and you can change It with your implementation but you must implement this interface

Example

@Service
public class AffairService extends MicroClientService<AffairReqVM, AffairResVM, Long> {
    @Override
    @Log(type = AuditFactory.AuditType.BEFORE)
    public BaseDTO<AffairResVM> create(AffairReqVM affairReqVM) {
        return super.create(affairReqVM);
    }
}
Clone this wiki locally