[fixes #2469] Support static reference as logger topic

This commit is contained in:
Rawi01 authored and Roel Spilker committed 2020-07-02 23:08:41 +02:00
1 parent e4ec9e6648
commit 9425e99b49
34 files changed
+279 -37

No files matched your search

@@ -36,4 +36,31 @@ class LoggerSlf4jOuter {
LoggerSlf4jWithDifferentLoggerName() {
super();
}
}
@Slf4j(topic = LoggerSlf4jWithStaticField.TOPIC) class LoggerSlf4jWithStaticField {
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LoggerSlf4jWithStaticField.TOPIC);
static final String TOPIC = "StaticField";
<clinit>() {
}
LoggerSlf4jWithStaticField() {
super();
}
}
@Slf4j(topic = (LoggerSlf4jWithTwoStaticFields.TOPIC + LoggerSlf4jWithTwoStaticFields.TOPIC)) class LoggerSlf4jWithTwoStaticFields {
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger((LoggerSlf4jWithTwoStaticFields.TOPIC + LoggerSlf4jWithTwoStaticFields.TOPIC));
static final String TOPIC = "StaticField";
<clinit>() {
}
LoggerSlf4jWithTwoStaticFields() {
super();
}
}
@Slf4j(topic = ExtendedStringLiteral{AB}) class LoggerSlf4jWithTwoLiterals {
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger("AB");
<clinit>() {
}
LoggerSlf4jWithTwoLiterals() {
super();
}
}