All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ideaaedi.commonspring.lite.params.RecordParameters Maven / Gradle / Ivy

There is a newer version: 2100.10.10.LTS17
Show newest version
package com.ideaaedi.commonspring.lite.params;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 记录 入参、出参
 *
 * @author JustryDeng 
 * @since 1.0.0
 */
@Retention(value = RetentionPolicy.RUNTIME)
@Target(value = {ElementType.TYPE, ElementType.METHOD})
public @interface RecordParameters {

    /** 日志级别 */
    LogLevel logLevel() default LogLevel.INFO;

    /** 日志策略 */
    Strategy strategy() default Strategy.INPUT_OUTPUT;

    /**
     * 日志级别枚举
     * 

* P.S. 对于入参、出参日志来讲,debug、info、warn这三种级别就够了 */ enum LogLevel { /** debug */ DEBUG, /** info */ INFO, /** warn */ WARN } /** * 日志记录策略枚举 */ enum Strategy { /** 记录入参 */ INPUT, /** 记录出参 */ OUTPUT, /** 既记录入参,也记录出参 */ INPUT_OUTPUT } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy