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

cn.smallbun.scaffold.framework.logger.annotation.Logger Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2018-2019.‭‭‭‭‭‭‭‭‭‭‭‭[zuoqinggang] www.pingfangushi.com
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see .
 */


package cn.smallbun.scaffold.framework.logger.annotation;

import cn.smallbun.scaffold.framework.logger.enmus.Operate;
import cn.smallbun.scaffold.framework.logger.enmus.Platform;

import java.lang.annotation.*;

import static cn.smallbun.scaffold.framework.logger.enmus.Platform.UNKNOWN;


/**
 * 日志注解
 *
 * @author SanLi
 * Created by [email protected] on 2018/10/7
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.METHOD, ElementType.TYPE})
@Inherited
public @interface Logger {
	/**
	 * 模块,只有注解在类上才会解析
	 *
	 * @return {@link String}
	 */
	String module() default "";

	/**
	 * 功能,只有方法上才会解析
	 * @return {@link String}
	 */
	String feature() default "";

	/**
	 * 操作类型
	 * @return {@link String}
	 */
	Operate action() default Operate.UNKNOWN;

	/**
	 * 平台类型
	 */
	Platform platform() default UNKNOWN;

	/**
	 * 是否保存入库
	 */
	boolean save() default true;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy