Annotation Type DontLogMe


  • @Documented
    @Retention(RUNTIME)
    @Target(PARAMETER)
    public @interface DontLogMe
    E.g. the ProfileAspect together with the AbstractProfileAspect logs also the arguments for long running methods. But sometimes you don't want to see the value of an argument, e.g.
    • if the argument is a password (you should never log passwords!)
    • if the argument contains personal infos which should not appear in the log (like the age of a woman;-)
    • if the value of the argument would be too long and would make the output unreadable
    • or other reasons.
    Now you can prefix these arguments with this annotation.
    Since:
    08.06.2009
    Version:
    $Revision: 1.3 $
    Author:
    oliver