aboutsummaryrefslogtreecommitdiff
path: root/usage_examples/LogExample_pre.jpage
blob: fa746dba92a2da20300a60a6ee7bfd60603a0194 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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");
	}
}

@CommonsLog("CounterLog")
public class LogExampleCategory {

	public static void main(String... args) {
		log.error("Calling the 'CounterLog' with a message");
	}
}