qa.justtestlah.annotations.EntryExitLogging Maven / Gradle / Ivy
Show all versions of justtestlah-core Show documentation
package qa.justtestlah.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation to mark methods for which entry/exit logging should be enabled.
*
* See {@link qa.justtestlah.aop.EntryExitLoggingAspect}.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface EntryExitLogging {
/** OFF = no logging */
int OFF = -1;
/** TRACE level of logging. */
int TRACE = 0;
/** DEBUG level of logging. */
int DEBUG = 1;
/** INFO level of logging. */
int INFO = 2;
/** WARN level of logging. */
int WARN = 3;
/** ERROR level of logging. */
int ERROR = 4;
/**
* The log level for the entry exit log message.
*
* @return log level
*/
int entryExitLogLevel() default EntryExitLogging.DEBUG;
/**
* The log level for the entry exit log message.
*
* @return log level
*/
int summaryLogLevel() default EntryExitLogging.INFO;
}