mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 02:17:12 +00:00
[fixes #2469] Support static reference as logger topic
This commit is contained in:
1 parent
e4ec9e6648
commit
9425e99b49
34 files changed
+279
-37
No files matched your search
@@ -22,4 +22,13 @@ import lombok.extern.log4j.Log4j;
|
||||
LoggerLog4jWithDifferentName() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@Log4j(topic = LoggerLog4jWithStaticField.TOPIC) class LoggerLog4jWithStaticField {
|
||||
private static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(LoggerLog4jWithStaticField.TOPIC);
|
||||
static final String TOPIC = "StaticField";
|
||||
<clinit>() {
|
||||
}
|
||||
LoggerLog4jWithStaticField() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user