mirror of
https://github.com/tiennm99/lombok.git
synced 2026-06-06 20:13:19 +00:00
43 lines
712 B
Java
43 lines
712 B
Java
import lombok.extern.slf4j.Slf4j;
|
|
|
|
@lombok.extern.slf4j.Slf4j
|
|
class LoggerSlf4j {
|
|
}
|
|
|
|
@Slf4j
|
|
class LoggerSlf4jWithImport {
|
|
}
|
|
|
|
@Slf4j
|
|
enum LoggerSlf4jWithEnum {
|
|
CONSTANT;
|
|
}
|
|
|
|
class LoggerSlf4jWithInnerEnum {
|
|
@Slf4j
|
|
enum Inner {
|
|
CONSTANT;
|
|
}
|
|
}
|
|
|
|
class LoggerSlf4jOuter {
|
|
@lombok.extern.slf4j.Slf4j
|
|
static class Inner {
|
|
|
|
}
|
|
}
|
|
|
|
@Slf4j(topic="DifferentLogger")
|
|
class LoggerSlf4jWithDifferentLoggerName {
|
|
}
|
|
|
|
@Slf4j(topic=LoggerSlf4jWithStaticField.TOPIC)
|
|
class LoggerSlf4jWithStaticField {
|
|
static final String TOPIC = "StaticField";
|
|
}
|
|
|
|
@Slf4j(topic=LoggerSlf4jWithTwoStaticFields.TOPIC + LoggerSlf4jWithTwoStaticFields.TOPIC)
|
|
class LoggerSlf4jWithTwoStaticFields {
|
|
static final String TOPIC = "StaticField";
|
|
}
|