aboutsummaryrefslogtreecommitdiff
path: root/website2/usageExamples/LogExample_pre.jpage
blob: ba27dd27efdc5161ad8c4ed583f8545bc4e1c435 (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(topic="CounterLog")
public class LogExampleCategory {

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