mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-25 20:01:38 +00:00
27 lines
493 B
Plaintext
27 lines
493 B
Plaintext
import lombok.extern.java.Log;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
@Log
|
|
public class LogExample {
|
|
|
|
public static void main(String... args) {
|
|
log.severe("Something's wrong here");
|
|
}
|
|
}
|
|
|
|
@Slf4j
|
|
public class LogExampleOther {
|
|
|
|
public static void main(String... args) {
|
|
log.error("Something else is wrong here");
|
|
}
|
|
}
|
|
|
|
@CommonsLog(topic="CounterLog")
|
|
public class LogExampleCategory {
|
|
|
|
public static void main(String... args) {
|
|
log.error("Calling the 'CounterLog' with a message");
|
|
}
|
|
}
|