mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-25 15:58:59 +00:00
16 lines
442 B
Plaintext
16 lines
442 B
Plaintext
public class LogExample {
|
|
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LogExample.class);
|
|
|
|
public static void main(String... args) {
|
|
log.error("Something's wrong here");
|
|
}
|
|
}
|
|
|
|
public class LogExampleOther {
|
|
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(java.util.List.class);
|
|
|
|
public static void main(String... args) {
|
|
log.warn("Something might be wrong here");
|
|
}
|
|
}
|