[slf4j-dev] [JIRA] (SLF4J-482) Explicit parameter for throwable

QOS.CH (JIRA) noreply-jira at qos.ch
Thu Jan 23 06:08:00 CET 2020


Martin Suska created SLF4J-482:
----------------------------------

             Summary: Explicit parameter for throwable
                 Key: SLF4J-482
                 URL: https://jira.qos.ch/browse/SLF4J-482
             Project: SLF4J
          Issue Type: Improvement
    Affects Versions: 1.7.29
         Environment: Spring Boot Java application with only:
{code:java}
<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.2.2.RELEASE</version>
</parent>

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter</artifactId>
    </dependency>
</dependencies>
{code}
in pom.xml
            Reporter: Martin Suska
            Assignee: SLF4J developers list
            Priority: Minor


[This question|[https://stackoverflow.com/questions/45054154/logger-format-and-throwable-slf4j]] on StackOverflow led me here as I had very the same question.

That behaviour is kind of hidden - not described in JavaDoc.

I believe it would be good to have
{code:java}
error(format, throwable, parameters){code}
alternative (as throwable cannot be the last), which can call the existing one internally.

I created this improvement just to make it easier for developers.



--
This message was sent by Atlassian JIRA
(v7.3.1#73012)


More information about the slf4j-dev mailing list