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

org.loguno.Loguno Maven / Gradle / Ivy

The newest version!
package org.loguno;

import org.loguno.processor.handlers.Frameworks;

import java.lang.annotation.*;

import static java.lang.annotation.ElementType.*;
import static org.loguno.processor.handlers.Frameworks.DEFAULT;

@Documented
@Repeatable(Loguno.$List.class)
@Retention(RetentionPolicy.SOURCE)
@Target({ METHOD, TYPE, LOCAL_VARIABLE, CONSTRUCTOR, PARAMETER, TYPE_PARAMETER, TYPE_USE })
public @interface Loguno {

	String[] value() default "";

	@Documented
	@Retention(RetentionPolicy.SOURCE)
	@Target({ METHOD, TYPE, LOCAL_VARIABLE, PARAMETER, TYPE_PARAMETER, TYPE_USE })
	@interface $List {
		Loguno[] value();
	}

	@Documented
	@Retention(RetentionPolicy.SOURCE)
	@Target({TYPE,PACKAGE})
	@interface Logger {
		Frameworks value() default DEFAULT;
		String name() default "LOG";
		boolean lazy() default false;
	}

	@Documented
	@Retention(RetentionPolicy.SOURCE)
	@Target({ METHOD, TYPE, LOCAL_VARIABLE, CONSTRUCTOR, PARAMETER, TYPE_PARAMETER, TYPE_USE })
	@interface TRACE {
		String[] value() default "";
	}

	@Documented
	@Retention(RetentionPolicy.SOURCE)
	@Target({ METHOD, TYPE, LOCAL_VARIABLE, CONSTRUCTOR, PARAMETER, TYPE_PARAMETER, TYPE_USE })
	@interface DEBUG {
		String[] value() default "";
	}

	@Documented
	@Retention(RetentionPolicy.SOURCE)
	@Target({ METHOD, TYPE, LOCAL_VARIABLE, CONSTRUCTOR, PARAMETER, TYPE_PARAMETER, TYPE_USE })
	@interface INFO {
		String[] value() default "";
	}

	@Documented
	@Retention(RetentionPolicy.SOURCE)
	@Target({ METHOD, TYPE, LOCAL_VARIABLE, CONSTRUCTOR, PARAMETER, TYPE_PARAMETER, TYPE_USE })
	@interface WARN {
		String[] value() default "";
	}

	@Documented
	@Retention(RetentionPolicy.SOURCE)
	@Target({ METHOD, TYPE, LOCAL_VARIABLE, CONSTRUCTOR, PARAMETER, TYPE_PARAMETER, TYPE_USE })
	@interface ERROR {
		String[] value() default "";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy