Skip to content

marciocesar/spring-aspectj-log-annotation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

spring-aspectj-log-annotation

This project demonstrates how to create a @LogInfo annotation which you can use as a kind of sensor over a method.

Example :

@LogInfo("'Calling test method with ' + #input1 + ' and ' + #input2 ")
public void testMethodWithAnnotation(String input1, String input2) {
   // do stuff
}

The mechanism is based on spring and aspectj, so it can't be used on private methods.

The annotation value is in SpEL, so you can use computations, accessors, etc.

Example :

@LogInfo("'Calling test method with ' + #entity.code ")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%