diff options
Diffstat (limited to 'usage_examples/LogExample_pre.jpage')
-rw-r--r-- | usage_examples/LogExample_pre.jpage | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/usage_examples/LogExample_pre.jpage b/usage_examples/LogExample_pre.jpage index 7ab64cd4..ba27dd27 100644 --- a/usage_examples/LogExample_pre.jpage +++ b/usage_examples/LogExample_pre.jpage @@ -1,4 +1,5 @@ -import lombok.extern.slf4j.Log; +import lombok.extern.java.Log; +import lombok.extern.slf4j.Slf4j; @Log public class LogExample { @@ -8,10 +9,18 @@ public class LogExample { } } -@Log(java.util.List.class) +@Slf4j public class LogExampleOther { public static void main(String... args) { - log.warn("Something might be wrong here"); + 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"); } } |