From 3372b5f442110e004a3b1e1cd5116ecabf5f239e Mon Sep 17 00:00:00 2001
From: Roel Spilker
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:
@CommonsLogprivate static final org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(LogExample.class);@JBossLogprivate static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger(LogExample.class);@Logprivate static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(LogExample.class.getName());@Log4jprivate 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").
@lombok.extern.apachecommons.CommonsLog as a warning or error if configured.lombok.log.javaUtilLogging.flagUsage = [warning | error] (default: not set)@lombok.extern.java.Log as a warning or error if configured.lombok.log.jbosslog.flagUsage = [warning | error] (default: not set)@lombok.extern.jbosslog.JBossLog as a warning or error if configured.lombok.log.log4j.flagUsage = [warning | error] (default: not set)@lombok.extern.log4j.Log4j as a warning or error if configured.lombok.log.log4j2.flagUsage = [warning | error] (default: not set)