mirror of
https://github.com/tiennm99/lombok.git
synced 2026-06-07 00:15:48 +00:00
c10fe50f6a
Specifically, using as custom logger topic a concatenated string, like literally `"A" + "B"`. It works, but depending on javac and phase of the moon that ends up as `"A" + "B"` or `"AB"`, and I don't think it's worthwhile for lombok to try to be consistent in this and test for that.
31 lines
591 B
Java
31 lines
591 B
Java
import lombok.extern.slf4j.Slf4j;
|
|
|
|
@lombok.extern.slf4j.Slf4j
|
|
class LoggerSlf4j {
|
|
}
|
|
|
|
@Slf4j
|
|
class LoggerSlf4jWithImport {
|
|
}
|
|
|
|
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";
|
|
}
|