diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-02-10 20:47:11 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-02-10 20:47:11 +0100 |
commit | db24fd42c5732856a894dbdc5e1827ea31792757 (patch) | |
tree | e1654e099bd84ae1bd6430140d4248ac043e5a5d /usage_examples | |
parent | 893585f526b852ff5059d279e69927fab0d41d42 (diff) | |
parent | 52bb71582bcff166469b8a8be0960a24bc3f02b7 (diff) | |
download | lombok-db24fd42c5732856a894dbdc5e1827ea31792757.tar.gz lombok-db24fd42c5732856a894dbdc5e1827ea31792757.tar.bz2 lombok-db24fd42c5732856a894dbdc5e1827ea31792757.zip |
Merge branch 'issue-632' of https://github.com/mthmulders/lombok into i632
Diffstat (limited to 'usage_examples')
-rw-r--r-- | usage_examples/LogExample_post.jpage | 8 | ||||
-rw-r--r-- | usage_examples/LogExample_pre.jpage | 8 |
2 files changed, 16 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"); + } +} diff --git a/usage_examples/LogExample_pre.jpage b/usage_examples/LogExample_pre.jpage index 196a9047..fa746dba 100644 --- a/usage_examples/LogExample_pre.jpage +++ b/usage_examples/LogExample_pre.jpage @@ -16,3 +16,11 @@ public class LogExampleOther { 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"); + } +} |