From 3372b5f442110e004a3b1e1cd5116ecabf5f239e Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Wed, 11 May 2016 21:26:37 +0200 Subject: Integrate JBossLog code - fix jboss-logging.jar name - add copyright notice to new source files - add cross-references from other @Log annotations - update feature page --- website/features/Log.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'website/features') diff --git a/website/features/Log.html b/website/features/Log.html index 31fab3dc..9415ddd9 100644 --- a/website/features/Log.html +++ b/website/features/Log.html @@ -18,10 +18,12 @@ NEW in lombok 0.10: You can annotate any class with a log annotation to let lombok generate a logger field.
The logger is named log and the field's type depends on which logger you have selected.

- There are six choices available:
+ There are several choices available:

@CommonsLog
Creates private static final org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(LogExample.class);
+
@JBossLog
+
Creates private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger(LogExample.class);
@Log
Creates private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(LogExample.class.getName());
@Log4j
@@ -34,7 +36,7 @@
Creates private static final org.slf4j.ext.XLogger log = org.slf4j.ext.XLoggerFactory.getXLogger(LogExample.class);

- By default, the topic (or name) of the logger will be the class name of the class annotated with the @Log annotation. This can be customised by specifying the topic parameter. For example: @XSlf4j(topic="reporting"). + By default, the topic (or name) of the logger will be the class name of the class annotated with the @Log annotation. This can be customised by specifying the topic parameter. For example: @XSlf4j(topic="reporting").

@@ -62,6 +64,8 @@
Lombok will flag any usage of @lombok.extern.apachecommons.CommonsLog as a warning or error if configured.
lombok.log.javaUtilLogging.flagUsage = [warning | error] (default: not set)
Lombok will flag any usage of @lombok.extern.java.Log as a warning or error if configured.
+
lombok.log.jbosslog.flagUsage = [warning | error] (default: not set)
+
Lombok will flag any usage of @lombok.extern.jbosslog.JBossLog as a warning or error if configured.
lombok.log.log4j.flagUsage = [warning | error] (default: not set)
Lombok will flag any usage of @lombok.extern.log4j.Log4j as a warning or error if configured.
lombok.log.log4j2.flagUsage = [warning | error] (default: not set)
-- cgit