@Retention(value=SOURCE) @Target(value=TYPE) public @interface Flogger
Complete documentation is found at the project lombok features page for lombok log annotations.
Example:
@Flogger public class LogExample { }will generate:
public class LogExample { private static final com.google.common.flogger.FluentLogger log = com.google.common.flogger.FluentLogger.forEnclosingClass(); }This annotation is valid for classes and enumerations.
@CommonsLog
,
@Log
,
@Log4j
,
@Log4j2
,
@Slf4j
,
@XSlf4j
,
@JBossLog
,
@CustomLog
Modifier and Type | Optional Element and Description |
---|---|
AccessLevel |
access
Sets the access level of the generated log field.
|
public abstract AccessLevel access
AccessLevel.PRIVATE
.Copyright © 2025. All rights reserved.