Skip to content

Commit

Permalink
fixed SLF4J-233
Browse files Browse the repository at this point in the history
  • Loading branch information
ceki committed Feb 19, 2019
1 parent fc7bf4d commit a822fd7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
10 changes: 5 additions & 5 deletions log4j-over-slf4j/src/main/java/org/apache/log4j/Category.java
Expand Up @@ -194,19 +194,19 @@ void differentiatedLog(Marker marker, String fqcn, int level, Object message, Th
} else {
switch (level) {
case LocationAwareLogger.TRACE_INT:
slf4jLogger.trace(marker, m);
slf4jLogger.trace(marker, m, (Throwable) t);
break;
case LocationAwareLogger.DEBUG_INT:
slf4jLogger.debug(marker, m);
slf4jLogger.debug(marker, m, (Throwable) t);
break;
case LocationAwareLogger.INFO_INT:
slf4jLogger.info(marker, m);
slf4jLogger.info(marker, m, (Throwable) t);
break;
case LocationAwareLogger.WARN_INT:
slf4jLogger.warn(marker, m);
slf4jLogger.warn(marker, m, (Throwable) t);
break;
case LocationAwareLogger.ERROR_INT:
slf4jLogger.error(marker, m);
slf4jLogger.error(marker, m, (Throwable) t);
break;
}
}
Expand Down
Expand Up @@ -78,7 +78,7 @@ public void trace(Object message) {
* method in SLF4J.
*/
public void trace(Object message, Throwable t) {
differentiatedLog(null, LOGGER_FQCN, LocationAwareLogger.TRACE_INT, message, null);
differentiatedLog(null, LOGGER_FQCN, LocationAwareLogger.TRACE_INT, message, t);
}

}
8 changes: 6 additions & 2 deletions slf4j-site/src/site/pages/news.html
Expand Up @@ -38,13 +38,17 @@ <h1>SLF4J News</h1>
-->


<!--


<hr noshade="noshade" size="1"/>

<h3>2019 - Release of SLF4J 1.8.0-beta5</h3>

-->
<p>Fixed ignored Throwable issue in log4j-over-slf4j as reported in
<a href="https://jira.qos.ch/browse/SLF4J-233">SLF4J-233</a> by
John Vasileff.</p>


<hr noshade="noshade" size="1"/>

<h3>February 19th, 2019 - Release of SLF4J 1.8.0-beta4</h3>
Expand Down

0 comments on commit a822fd7

Please sign in to comment.