@Retention(value=SOURCE)
@Target(value=TYPE)
public @interface Log
Complete documentation is found at the project lombok features page for lombok log annotations.
Example:
@Log public class LogExample { }will generate:
public class LogExample { private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(LogExample.class.getName()); }This annotation is valid for classes and enumerations.
java.util.logging.Logger
,
java.util.logging.Logger.getLogger(String name)
,
@CommonsLog
,
@Log4j
,
@Log4j2
,
@Slf4j
,
@XSlf4j
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
topic
Sets the category of the constructed Logger.
|
Copyright © 2009-2015 The Project Lombok Authors, licensed under the MIT licence.