aboutsummaryrefslogtreecommitdiff
path: root/usage_examples/LogExample_post.jpage
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2014-01-21 23:09:54 +0100
committerRoel Spilker <r.spilker@gmail.com>2014-01-21 23:09:54 +0100
commitce8362fad53b0016dba9fb01fcb68ba2dd7ade36 (patch)
tree8daa548ee31b0cb183ffbc17efaecb9d76af272c /usage_examples/LogExample_post.jpage
parentd5c366e93ea19f286da2bdee16c0fdca8850b22a (diff)
downloadlombok-ce8362fad53b0016dba9fb01fcb68ba2dd7ade36.tar.gz
lombok-ce8362fad53b0016dba9fb01fcb68ba2dd7ade36.tar.bz2
lombok-ce8362fad53b0016dba9fb01fcb68ba2dd7ade36.zip
Added extra example to the online documentation for @Log
Diffstat (limited to 'usage_examples/LogExample_post.jpage')
-rw-r--r--usage_examples/LogExample_post.jpage10
1 files changed, 9 insertions, 1 deletions
diff --git a/usage_examples/LogExample_post.jpage b/usage_examples/LogExample_post.jpage
index 2ec7f223..4ab35b08 100644
--- a/usage_examples/LogExample_post.jpage
+++ b/usage_examples/LogExample_post.jpage
@@ -1,7 +1,15 @@
public class LogExample {
- private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LogExample.class);
+ private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(LogExample.class.getName());
public static void main(String... args) {
log.error("Something's wrong here");
}
}
+
+public class LogExampleOther {
+ private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LogExampleOther.class);
+
+ public static void main(String... args) {
+ log.error("Something else is wrong here");
+ }
+}