mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-27 12:24:44 +00:00
19 lines
320 B
Plaintext
19 lines
320 B
Plaintext
import lombok.extern.java.Log;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
@Log
|
|
public class LogExample {
|
|
|
|
public static void main(String... args) {
|
|
log.error("Something's wrong here");
|
|
}
|
|
}
|
|
|
|
@Slf4j
|
|
public class LogExampleOther {
|
|
|
|
public static void main(String... args) {
|
|
log.error("Something else is wrong here");
|
|
}
|
|
}
|