[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

@@ -22,4 +22,13 @@ import lombok.extern.log4j.Log4j2;
LoggerLog4j2WithDifferentName() {
super();
}
}
@Log4j2(topic = LoggerLog4j2WithStaticField.TOPIC) class LoggerLog4j2WithStaticField {
private static final org.apache.logging.log4j.Logger log = org.apache.logging.log4j.LogManager.getLogger(LoggerLog4j2WithStaticField.TOPIC);
static final String TOPIC = "StaticField";
<clinit>() {
}
LoggerLog4j2WithStaticField() {
super();
}
}