BewareMyPower commented on PR #20847:
URL: https://github.com/apache/pulsar/pull/20847#issuecomment-1644997788

   I think it's not missed. The SLF4J logger supports adding an exception 
argument at the tail.
   
   You can try the following code directly:
   
   ```java
   @Slf4j
   public class Main {
   
       public static void main(String[] args) {
           final var e = new RuntimeException("error");
           log.info("exception: ", e);
       }
   }
   ```
   
   and you will see the output:
   
   ```
   [2023-07-21 13:20:37,967] mainid INFO exception:  (org.example.Main)
   java.lang.RuntimeException: error
        at org.example.Main.main(Main.java:9)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to