[JIRA] (SLF4J-400) Guard exception that can occur when converting a message to a string
Ken Kwon created SLF4J-400:
Summary: Guard exception that can occur when converting a message to a string
URL: https://jira.qos.ch/browse/SLF4J-400 Project: SLF4J
Issue Type: Improvement
Affects Versions: 1.7.25
Environment: * OS : any
* JDK : 1.8 (or any)
Reporter: Ken Kwon
Assignee: SLF4J developers list
For example, someone implements message class's toString method incorrect.
Reprodution steps are described as sample project.
Download the project and run command in your console(or IDE) 'mvn clean test', then you can see the test case is failed.
I think it is better to ignore the exception and let the Category(Logger) continue to run - for example, if the exception is occured , then slf4j prints the exception and continues to call appenders with null message object.