blob: cbdc5a9e2b262b086ce54908d1be2ebf78ce7890 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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");
}
}
|