aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/lombok/extern/slf4j/Slf4j.java3
-rw-r--r--usage_examples/LogExample_post.jpage8
-rw-r--r--usage_examples/LogExample_pre.jpage8
-rw-r--r--website/features/Log.html2
4 files changed, 3 insertions, 18 deletions
diff --git a/src/core/lombok/extern/slf4j/Slf4j.java b/src/core/lombok/extern/slf4j/Slf4j.java
index 45942971..8490b6b6 100644
--- a/src/core/lombok/extern/slf4j/Slf4j.java
+++ b/src/core/lombok/extern/slf4j/Slf4j.java
@@ -52,7 +52,8 @@ import java.lang.annotation.Target;
* @see lombok.extern.java.Log @Log
* @see lombok.extern.log4j.Log4j @Log4j
* @see lombok.extern.log4j.Log4j2 @Log4j2
- */
+ * @see lombok.extern.slf4j.XSlf4j @XSlf4j
+ * */
@Retention(RetentionPolicy.SOURCE)
@Target(ElementType.TYPE)
public @interface Slf4j {
diff --git a/usage_examples/LogExample_post.jpage b/usage_examples/LogExample_post.jpage
index cbdc5a9e..2ec7f223 100644
--- a/usage_examples/LogExample_post.jpage
+++ b/usage_examples/LogExample_post.jpage
@@ -5,11 +5,3 @@ public class LogExample {
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
index 7ab64cd4..afabf369 100644
--- a/usage_examples/LogExample_pre.jpage
+++ b/usage_examples/LogExample_pre.jpage
@@ -7,11 +7,3 @@ public class LogExample {
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");
- }
-}
diff --git a/website/features/Log.html b/website/features/Log.html
index 2d4fa375..f92af1e3 100644
--- a/website/features/Log.html
+++ b/website/features/Log.html
@@ -31,7 +31,7 @@
<dt><code>@Slf4j</code></dt>
<dd>Creates <code><span class="keyword">private&nbsp;static&nbsp;final&nbsp;</span><a href="http://www.slf4j.org/api/org/slf4j/Logger.html">org.slf4j.Logger</a>&nbsp;<span class="staticfield">log</span>&nbsp;=&nbsp;<a href="http://www.slf4j.org/apidocs/org/slf4j/LoggerFactory.html#getLogger(java.lang.Class)">org.slf4j.LoggerFactory.getLogger</a>(LogExample.<span class="keyword">class</span>);</code></dd>
<dt><code>@XSlf4j</code></dt>
- <dd>Creates <code><span class="keyword">private&nbsp;static&nbsp;final&nbsp;</span><a href="http://www.slf4j.org/api/org/slf4j/ext/XLogger.html">org.slf4j.ext.XLogger</a>&nbsp;<span class="staticfield">log</span>&nbsp;=&nbsp;<a href="http://www.slf4j.org/apidocs/org/slf4j/ext/XLoggerFactory.html#getXLogger(java.lang.Class)">org.slf4j.XLoggerFactory.getXLogger</a>(LogExample.<span class="keyword">class</span>);</code></dd>
+ <dd>Creates <code><span class="keyword">private&nbsp;static&nbsp;final&nbsp;</span><a href="http://www.slf4j.org/api/org/slf4j/ext/XLogger.html">org.slf4j.ext.XLogger</a>&nbsp;<span class="staticfield">log</span>&nbsp;=&nbsp;<a href="http://www.slf4j.org/apidocs/org/slf4j/ext/XLoggerFactory.html#getXLogger(java.lang.Class)">org.slf4j.ext.XLoggerFactory.getXLogger</a>(LogExample.<span class="keyword">class</span>);</code></dd>
</dl>
</p>
</div>