mirror of
https://github.com/tiennm99/lombok.git
synced 2026-08-01 14:22:11 +00:00
[Log] updated naming for @Log (topic= instead of mchmulder's 'value').
25 lines
710 B
Java
25 lines
710 B
Java
import lombok.extern.log4j.Log4j;
|
|
@lombok.extern.log4j.Log4j class LoggerLog4j {
|
|
private static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(LoggerLog4j.class);
|
|
<clinit>() {
|
|
}
|
|
LoggerLog4j() {
|
|
super();
|
|
}
|
|
}
|
|
@Log4j class LoggerLog4jWithImport {
|
|
private static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(LoggerLog4jWithImport.class);
|
|
<clinit>() {
|
|
}
|
|
LoggerLog4jWithImport() {
|
|
super();
|
|
}
|
|
}
|
|
@Log4j(topic = "DifferentName") class LoggerLog4jWithDifferentName {
|
|
private static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger("DifferentName");
|
|
<clinit>() {
|
|
}
|
|
LoggerLog4jWithDifferentName() {
|
|
super();
|
|
}
|
|
} |