LogIt annotations can be used in different places/levels (classes, class’s methods, interfaces, interface’s methods) we need to have clear rules how to resolve those conflicts because they (annotations) can contradict each other.
Only one annotation can be applied for logging.
This is the order of annotations by priority:
Method in Class(Implementation) ->
Method in Interface ->
Method in Class annotation has the highest priority and overrides all others.
If for some method all annotations are present then the
Method in Class level annotation will be applied, all the others will be ignored.
You can use that to customize logging for the certain method(s)/class(es)/interface(s) that you want to log differently.