![JAR search and dependency download from the Maven repository](/logo.png)
im.aop.loggers.advice.before.LogBefore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of im-aop-loggers Show documentation
Show all versions of im-aop-loggers Show documentation
A handy and configurable sets of annotation-based loggers for Spring Boot that can
log every execution of a method when entering or exiting normally or abnormally, without you
writing a single line of code using aspect-oriented programming (AOP)
package im.aop.loggers.advice.before;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import im.aop.loggers.Level;
/**
* Log before entering the target method.
*
* @author Andy Lian
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
@Documented
public @interface LogBefore {
/** @return Class name used as Logger's category name */
Class> declaringClass() default void.class;
/** @return Log Level for entering message */
Level level() default Level.DEFAULT;
/** @return Entering message template */
String enteringMessage() default "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy