aboutsummaryrefslogtreecommitdiff
path: root/usage_examples
diff options
context:
space:
mode:
Diffstat (limited to 'usage_examples')
-rw-r--r--usage_examples/LogExample_post.jpage15
-rw-r--r--usage_examples/LogExample_pre.jpage17
2 files changed, 32 insertions, 0 deletions
diff --git a/usage_examples/LogExample_post.jpage b/usage_examples/LogExample_post.jpage
new file mode 100644
index 00000000..cbdc5a9e
--- /dev/null
+++ b/usage_examples/LogExample_post.jpage
@@ -0,0 +1,15 @@
+public class LogExample {
+ private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LogExample.class);
+
+ 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(java.util.List.class);
+
+ public static void main(String... args) {
+ log.warn("Something might be wrong here");
+ }
+}
diff --git a/usage_examples/LogExample_pre.jpage b/usage_examples/LogExample_pre.jpage
new file mode 100644
index 00000000..450a6a34
--- /dev/null
+++ b/usage_examples/LogExample_pre.jpage
@@ -0,0 +1,17 @@
+import lombok.slf4j.Log;
+
+@Log
+public class LogExample {
+
+ public static void main(String... args) {
+ log.error("Something's wrong here");
+ }
+}
+
+@Log(java.util.List.class)
+public class LogExampleOther {
+
+ public static void main(String... args) {
+ log.warn("Something might be wrong here");
+ }
+}