aboutsummaryrefslogtreecommitdiff
path: root/usage_examples/LogExample_post.jpage
diff options
context:
space:
mode:
authorMaarten Mulders <m.th.mulders@xs4all.nl>2014-02-08 21:03:17 +0100
committerMaarten Mulders <m.th.mulders@xs4all.nl>2014-02-08 21:08:39 +0100
commit52bb71582bcff166469b8a8be0960a24bc3f02b7 (patch)
tree89d795fd96cf07ad24ec33c23b8ffc4c153cd806 /usage_examples/LogExample_post.jpage
parentc0e00edb7bf369470c55d59307bbf80cc3abb9d9 (diff)
downloadlombok-52bb71582bcff166469b8a8be0960a24bc3f02b7.tar.gz
lombok-52bb71582bcff166469b8a8be0960a24bc3f02b7.tar.bz2
lombok-52bb71582bcff166469b8a8be0960a24bc3f02b7.zip
Explained how to customise the category of the generated Log(ger)
Diffstat (limited to 'usage_examples/LogExample_post.jpage')
-rw-r--r--usage_examples/LogExample_post.jpage8
1 files changed, 8 insertions, 0 deletions
diff --git a/usage_examples/LogExample_post.jpage b/usage_examples/LogExample_post.jpage
index 4ab35b08..eab3b046 100644
--- a/usage_examples/LogExample_post.jpage
+++ b/usage_examples/LogExample_post.jpage
@@ -13,3 +13,11 @@ public class LogExampleOther {
log.error("Something else is wrong here");
}
}
+
+public class LogExampleCategory {
+ private static final org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog("CounterLog");
+
+ public static void main(String... args) {
+ log.error("Calling the 'CounterLog' with a message");
+ }
+}