<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>&nbsp;&nbsp;private static final String FQCN = MyLogger.class.getName();</div><div><br></div><div>&nbsp;&nbsp;<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; ">&nbsp;&nbsp;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>&nbsp;&nbsp;private Logger logger;</div><div><br></div><div>&nbsp;&nbsp;public MyLogger(Class clazz) {</div><div>&nbsp;&nbsp; &nbsp;logger = new LoggerWrapper(LoggerFactory.getLogger(clazz), FQCN);</div><div>&nbsp;&nbsp;}</div><div><br></div><div>&nbsp;&nbsp;public void info(<span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; ">LEVEL level, String format, Object[] argArray</span>) {</div><div>&nbsp;&nbsp; &nbsp;<span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; ">if (!logger.isInfoEnabled() || !(level.ordinal() &lt;= infoLevel.ordinal())) {</span></div><div><font class="Apple-style-span" face="Tahoma" size="3"><span class="Apple-style-span" style="font-size: 13px; ">&nbsp;&nbsp; &nbsp; 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; ">&nbsp;&nbsp; &nbsp;} &nbsp;</span></span></div><div>&nbsp;&nbsp; &nbsp;if (logger.instanceofLAL) {</div><div>&nbsp;&nbsp; &nbsp; &nbsp;String formattedMessage =&nbsp;MessageFormatter.arrayFormat(format, argArray);</div><div>&nbsp;&nbsp; &nbsp; &nbsp;((LocationAwareLogger) logger).log(null, FQCN,</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LocationAwareLogger.INFO_INT, formattedMessage, null);</div><div>&nbsp;&nbsp; &nbsp;} else {</div><div>&nbsp;&nbsp; &nbsp; &nbsp;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; ">&nbsp;&nbsp; &nbsp;}&nbsp;&nbsp;</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; ">&nbsp;&nbsp;}</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; ">&nbsp;</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; ">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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; ">&nbsp;&nbsp;&nbsp; private LEVEL infoLevel = LEVEL.FINE;<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; private LEVEL debugLevel = LEVEL.FINE;<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; 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; ">&nbsp;&nbsp;&nbsp; public Logger(Class clazz, LEVEL infoLevel, LEVEL debugLevel) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this.infoLevel = infoLevel;<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this.debugLevel = debugLevel;<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger = org.slf4j.LoggerFactory.getLogger(clazz);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; public Logger(String name, LEVEL infoLevel, LEVEL debugLevel) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this.infoLevel = infoLevel;<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this.debugLevel = debugLevel;<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger = org.slf4j.LoggerFactory.getLogger(name);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; public void info(String message) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger.info(message);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; public void info(String message, Throwable throwable) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger.info(message, throwable);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; public void info(String message, Object[] objects) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(logger.isInfoEnabled()) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger.info(message, objects);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; public void info(LEVEL level, String message) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if((logger.isInfoEnabled()) &amp;&amp; (level.ordinal() &lt;= infoLevel.ordinal())) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger.info(message);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; 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; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if((logger.isInfoEnabled()) &amp;&amp; (level.ordinal() &lt;= infoLevel.ordinal())) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger.info(message, throwable);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; 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; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if((logger.isInfoEnabled()) &amp;&amp; (level.ordinal() &lt;= infoLevel.ordinal())) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger.info(message, objects);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; // Debug messages.<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; public void debug(String message) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(logger.isDebugEnabled()) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger.debug(message);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; public void debug(String message, Throwable throwable) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(logger.isDebugEnabled()) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger.debug(message, throwable);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; public void debug(String message, Object[] objects) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(logger.isDebugEnabled()) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger.debug(message, objects);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; public void debug(LEVEL level, String message) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if((logger.isDebugEnabled()) &amp;&amp; (level.ordinal() &lt;= debugLevel.ordinal())) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger.debug(message);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; 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; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if((logger.isDebugEnabled()) &amp;&amp; (level.ordinal() &lt;= debugLevel.ordinal())) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger.debug(message, throwable);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; }<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; ">&nbsp;&nbsp;&nbsp; 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; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if((logger.isDebugEnabled()) &amp;&amp; (level.ordinal() &lt;= debugLevel.ordinal())) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger.debug(message, objects);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; // 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; ">&nbsp;&nbsp;&nbsp; public void severe(String message) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(logger.isErrorEnabled()) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger.error(message);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; public void severe(String message, Throwable throwable) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(logger.isErrorEnabled()) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger.error(message, throwable);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; public void severe(String message, Object[] objects) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(logger.isErrorEnabled()) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger.error(message, objects);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; // Intended for warning messages.<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; public void warning(String message) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(logger.isWarnEnabled()) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger.warn(message);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; public void warning(String message, Throwable throwable) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(logger.isWarnEnabled()) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger.warn(message, throwable);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</span><br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; public void warning(String message, Object[] objects) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(logger.isWarnEnabled()) {<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger.warn(message, objects);<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp; }<br style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</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:&nbsp;This&nbsp;email&nbsp;is&nbsp;confidential.&nbsp;&nbsp;If&nbsp;you&nbsp;are&nbsp;not&nbsp;the&nbsp;intended&nbsp;recipient,&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;by&nbsp;return&nbsp;email&nbsp;and&nbsp;delete&nbsp;this&nbsp;message&nbsp;from&nbsp;your&nbsp;mail&nbsp;box&nbsp;without&nbsp;reading&nbsp;or&nbsp;copying&nbsp;it&nbsp;or&nbsp;any&nbsp;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:&nbsp;Ce&nbsp;courriel&nbsp;est&nbsp;confidentiel.&nbsp;Si&nbsp;vous&nbsp;n'êtes&nbsp;pas&nbsp;le&nbsp;destinataire&nbsp;prévu,&nbsp;veuillez&nbsp;en&nbsp;informer&nbsp;l'expéditeur&nbsp;par&nbsp;le&nbsp;courriel&nbsp;de&nbsp;retour&nbsp;et&nbsp;le&nbsp;supprimer&nbsp;immédiatement&nbsp;sans&nbsp;le&nbsp;lire&nbsp;ou&nbsp;le&nbsp;copier&nbsp;(incluant&nbsp;les&nbsp;pièces&nbsp;jointes,&nbsp;&nbsp;le&nbsp;cas&nbsp;é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; ">&nbsp;</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp;</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:&nbsp;This&nbsp;email&nbsp;is&nbsp;confidential.&nbsp;&nbsp;If&nbsp;you&nbsp;are&nbsp;not&nbsp;the&nbsp;intended&nbsp;recipient,&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;by&nbsp;return&nbsp;email&nbsp;and&nbsp;delete&nbsp;this&nbsp;message&nbsp;from&nbsp;your&nbsp;mail&nbsp;box&nbsp;without&nbsp;reading&nbsp;or&nbsp;copying&nbsp;it&nbsp;or&nbsp;any&nbsp;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:&nbsp;Ce&nbsp;courriel&nbsp;est&nbsp;confidentiel.&nbsp;Si&nbsp;vous&nbsp;n'êtes&nbsp;pas&nbsp;le&nbsp;destinataire&nbsp;prévu,&nbsp;veuillez&nbsp;en&nbsp;informer&nbsp;l'expéditeur&nbsp;par&nbsp;le&nbsp;courriel&nbsp;de&nbsp;retour&nbsp;et&nbsp;le&nbsp;supprimer&nbsp;immédiatement&nbsp;sans&nbsp;le&nbsp;lire&nbsp;ou&nbsp;le&nbsp;copier&nbsp;(incluant&nbsp;les&nbsp;pièces&nbsp;jointes,&nbsp;&nbsp;le&nbsp;cas&nbsp;é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>