mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-25 21:58:35 +00:00
18 lines
307 B
Plaintext
18 lines
307 B
Plaintext
import lombok.extern.slf4j.Log;
|
|
|
|
@Log
|
|
public class LogExample {
|
|
|
|
public static void main(String... args) {
|
|
log.error("Something's wrong here");
|
|
}
|
|
}
|
|
|
|
@Log(java.util.List.class)
|
|
public class LogExampleOther {
|
|
|
|
public static void main(String... args) {
|
|
log.warn("Something might be wrong here");
|
|
}
|
|
}
|