<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>You do something like this:<br><div><br></div><div>public class MyLogger {</div><div><br></div><div> private static final String FQCN = MyLogger.class.getName();</div><div><br></div><div> <span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; ">private LEVEL infoLevel = LEVEL.FINE;</span></div><div><span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; "> private LEVEL debugLevel = LEVEL.FINE;</span></div><div><font class="Apple-style-span" face="Tahoma" size="3"><span class="Apple-style-span" style="font-size: 13px; "><br></span></font></div><div> private Logger logger;</div><div><br></div><div> public MyLogger(Class clazz) {</div><div> logger = new LoggerWrapper(LoggerFactory.getLogger(clazz), FQCN);</div><div> }</div><div><br></div><div> public void info(<span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; ">LEVEL level, String format, Object[] argArray</span>) {</div><div> <span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; ">if (!logger.isInfoEnabled() || !(level.ordinal() <= infoLevel.ordinal())) {</span></div><div><font class="Apple-style-span" face="Tahoma" size="3"><span class="Apple-style-span" style="font-size: 13px; "> return;</span></font></div><div><span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; "><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; "> } </span></span></div><div> if (logger.instanceofLAL) {</div><div> String formattedMessage = MessageFormatter.arrayFormat(format, argArray);</div><div> ((LocationAwareLogger) logger).log(null, FQCN,</div><div> LocationAwareLogger.INFO_INT, formattedMessage, null);</div><div> } else {</div><div> logger.info(marker, format, arg1, arg2);</div><div><span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; "><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; "> } </span></span></div><div><span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; "><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; "> }</span></span></div><div>}</div><div><div><br></div></div>On Feb 26, 2009, at 5:49 PM, Ashley Westwell wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font: normal normal normal 10pt/normal Tahoma, Verdana, sans-serif; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hey Ralph</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Took a look at the call and the wrapper class. My issue I dont want to esxpose the methods defined in the Logger interface. I only want to expose my methods for logging. Thats why I did not implement the Logger interface. Can you suggest how I could deal with the line number issue with out implementing Logger?</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks</div><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><blockquote style="padding-left: 5px; margin-left: 5px; border-left-color: rgb(0, 0, 255); border-left-width: 2px; border-left-style: solid; margin-right: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><hr style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><b style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">From:</b><span class="Apple-converted-space"> </span>Ralph Goers [<a href="mailto:rgoers@apache.org" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">mailto:rgoers@apache.org</a>]<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><b style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">To:</b><span class="Apple-converted-space"> </span>slf4j developers list [<a href="mailto:dev@slf4j.org" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">mailto:dev@slf4j.org</a>]<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><b style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Sent:</b><span class="Apple-converted-space"> </span>Fri, 20 Feb 2009 17:44:38 -0500<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><b style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Subject:</b><span class="Apple-converted-space"> </span>Re: [slf4j-dev] SLF4J Wrapper class line number incorrect<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Take a look at XLogger in slf4j-ext.<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Out of curiosity, what do you need the wrapper for?</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "></div>Ralph</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">On Feb 20, 2009, at 2:58 PM, Ashley Westwell wrote:</div><br class="Apple-interchange-newline" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><blockquote type="cite" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="word-spacing: 0px; font: normal normal normal 12px/normal Helvetica; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="font: normal normal normal 10pt/normal Tahoma, Verdana, sans-serif; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Good Afternoon<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I have created a wrapper layer for SLF4J (Listed below). However the line number are incorrect, it is using the line numbers in the wrapper class not the class that I called the wrapper from. What is the correct way to fix this?<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">package com.test.commons.logging;<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">import com.test.commons.logging.LoggerFactory.LEVEL;<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">public class Logger {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> private LEVEL infoLevel = LEVEL.FINE;<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> private LEVEL debugLevel = LEVEL.FINE;<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> private org.slf4j.Logger logger = null;<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> public Logger(Class clazz, LEVEL infoLevel, LEVEL debugLevel) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> this.infoLevel = infoLevel;<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> this.debugLevel = debugLevel;<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> logger = org.slf4j.LoggerFactory.getLogger(clazz);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> public Logger(String name, LEVEL infoLevel, LEVEL debugLevel) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> this.infoLevel = infoLevel;<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> this.debugLevel = debugLevel;<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> logger = org.slf4j.LoggerFactory.getLogger(name);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> public void info(String message) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> logger.info(message);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> public void info(String message, Throwable throwable) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> logger.info(message, throwable);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> public void info(String message, Object[] objects) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> if(logger.isInfoEnabled()) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> logger.info(message, objects);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> public void info(LEVEL level, String message) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> if((logger.isInfoEnabled()) && (level.ordinal() <= infoLevel.ordinal())) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> logger.info(message);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> public void info(LEVEL level, String message, Throwable throwable) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> if((logger.isInfoEnabled()) && (level.ordinal() <= infoLevel.ordinal())) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> logger.info(message, throwable);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> public void info(LEVEL level, String message, Object[] objects) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> if((logger.isInfoEnabled()) && (level.ordinal() <= infoLevel.ordinal())) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> logger.info(message, objects);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> // Debug messages.<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> public void debug(String message) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> if(logger.isDebugEnabled()) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> logger.debug(message);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> public void debug(String message, Throwable throwable) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> if(logger.isDebugEnabled()) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> logger.debug(message, throwable);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> public void debug(String message, Object[] objects) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> if(logger.isDebugEnabled()) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> logger.debug(message, objects);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> public void debug(LEVEL level, String message) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> if((logger.isDebugEnabled()) && (level.ordinal() <= debugLevel.ordinal())) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> logger.debug(message);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> public void debug(LEVEL level, String message, Throwable throwable) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> if((logger.isDebugEnabled()) && (level.ordinal() <= debugLevel.ordinal())) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> logger.debug(message, throwable);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> public void debug(LEVEL level, String message, Object[] objects) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> if((logger.isDebugEnabled()) && (level.ordinal() <= debugLevel.ordinal())) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> logger.debug(message, objects);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> // The highest value; intended for extremely important messages (e.g. fatal program errors).<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> public void severe(String message) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> if(logger.isErrorEnabled()) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> logger.error(message);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> public void severe(String message, Throwable throwable) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> if(logger.isErrorEnabled()) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> logger.error(message, throwable);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> public void severe(String message, Object[] objects) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> if(logger.isErrorEnabled()) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> logger.error(message, objects);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> // Intended for warning messages.<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> public void warning(String message) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> if(logger.isWarnEnabled()) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> logger.warn(message);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> public void warning(String message, Throwable throwable) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> if(logger.isWarnEnabled()) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> logger.warn(message, throwable);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> public void warning(String message, Object[] objects) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> if(logger.isWarnEnabled()) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> logger.warn(message, objects);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">}</div><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><hr style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Notice: This email is confidential. If you are not the intended recipient, please notify the sender by return email and delete this message from your mail box without reading or copying it or any attachments.<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Attention: Ce courriel est confidentiel. Si vous n'êtes pas le destinataire prévu, veuillez en informer l'expéditeur par le courriel de retour et le supprimer immédiatement sans le lire ou le copier (incluant les pièces jointes, le cas échéant).<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">_______________________________________________<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">dev mailing list<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><a href="mailto:dev@slf4j.org" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">dev@slf4j.org</a><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><a href="http://www.slf4j.org/mailman/listinfo/dev" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">http://www.slf4j.org/mailman/listinfo/dev</a></div></span></blockquote></div><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "></blockquote><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> </div><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><hr style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Notice: This email is confidential. If you are not the intended recipient, please notify the sender by return email and delete this message from your mail box without reading or copying it or any attachments.<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Attention: Ce courriel est confidentiel. Si vous n'êtes pas le destinataire prévu, veuillez en informer l'expéditeur par le courriel de retour et le supprimer immédiatement sans le lire ou le copier (incluant les pièces jointes, le cas échéant).<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">_______________________________________________<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">dev mailing list<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><a href="mailto:dev@slf4j.org" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">dev@slf4j.org</a><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><a href="http://www.slf4j.org/mailman/listinfo/dev" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">http://www.slf4j.org/mailman/listinfo/dev</a></div></span></blockquote></div><br></body></html>