aboutsummaryrefslogtreecommitdiff
path: root/website2/usageExamples/LogExample_pre.jpage
diff options
context:
space:
mode:
Diffstat (limited to 'website2/usageExamples/LogExample_pre.jpage')
-rw-r--r--website2/usageExamples/LogExample_pre.jpage26
1 files changed, 26 insertions, 0 deletions
diff --git a/website2/usageExamples/LogExample_pre.jpage b/website2/usageExamples/LogExample_pre.jpage
new file mode 100644
index 00000000..ba27dd27
--- /dev/null
+++ b/website2/usageExamples/LogExample_pre.jpage
@@ -0,0 +1,26 @@
+import lombok.extern.java.Log;
+import lombok.extern.slf4j.Slf4j;
+
+@Log
+public class LogExample {
+
+ public static void main(String... args) {
+ log.error("Something's wrong here");
+ }
+}
+
+@Slf4j
+public class LogExampleOther {
+
+ public static void main(String... args) {
+ 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");
+ }
+}