aboutsummaryrefslogtreecommitdiff
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
parentd5c366e93ea19f286da2bdee16c0fdca8850b22a (diff)
downloadlombok-ce8362fad53b0016dba9fb01fcb68ba2dd7ade36.tar.gz
lombok-ce8362fad53b0016dba9fb01fcb68ba2dd7ade36.tar.bz2
lombok-ce8362fad53b0016dba9fb01fcb68ba2dd7ade36.zip
Added extra example to the online documentation for @Log
-rw-r--r--usage_examples/LogExample_post.jpage10
-rw-r--r--usage_examples/LogExample_pre.jpage11
2 files changed, 19 insertions, 2 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");
+ }
+}
diff --git a/usage_examples/LogExample_pre.jpage b/usage_examples/LogExample_pre.jpage
index afabf369..196a9047 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 {
@@ -7,3 +8,11 @@ public class LogExample {
log.error("Something's wrong here");
}
}
+
+@Slf4j
+public class LogExampleOther {
+
+ public static void main(String... args) {
+ log.error("Something else is wrong here");
+ }
+}