|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={METHOD,TYPE}) @Retention(value=RUNTIME) @Inherited @Documented public @interface Logging
Annotation used to provide a few extra options to the API logging advice. This annotation is only
needed if a specific method needs some extra information (like if you want to limit the output of
this method when being logged because of size concerns or security concerns).
To use, simply place the annotation before a method declaration in its interface:
@Logging(ignoreAllArgumentValues=true) public SomeString setSomeLargeString(String aVeryLargeString); @Logging(ignoreAllArgumentValues=true) public User saveUser(User userToSave, String password); @Logging(ignoredArgumentIndexes={1}) public User saveUser(User userToSave, String password);
LoggingAdvice
Optional Element Summary | |
---|---|
boolean |
ignoreAllArgumentValues
If set to true, the annotated method will not print out the contents of the arguments every time this method is accessed and logged. |
int[] |
ignoredArgumentIndexes
This list should set the argument indexes that should not be printed. |
public abstract boolean ignoreAllArgumentValues
public abstract int[] ignoredArgumentIndexes
Logging
annotation has set ignoreAllArgumentValues()
to
true
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |