Lombok - v0.11.0

lombok.extern.slf4j
Annotation Type Slf4j


@Retention(value=SOURCE)
@Target(value=TYPE)
public @interface Slf4j

Causes lombok to generate a logger field. Example:

 @Slf4j
 public class LogExample {
 }
 
will generate:
 public class LogExample {
     private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LogExample.class);
 }
 
This annotation is valid for classes and enumerations.

See Also:
org.slf4j.Logger, org.slf4j.LoggerFactory.getLogger(Class target), @CommonsLog, @Log, @Log4j


Lombok - v0.11.0

Copyright © 2009-2011 The Project Lombok Authors, licensed under the MIT licence.