Other Slf4j implementations accept a null for the message when logging. I believe the slf4j API also doesn't label the message as @Nonnull.
Currently LoggingEvent has a checkNotNull check on message. Which causes my existing code, that does log a null, to get an NPE. I think it was probably done to be like the checks on the other Optional fields.
Other Slf4j implementations accept a null for the message when logging. I believe the slf4j API also doesn't label the message as @Nonnull.
Currently LoggingEvent has a checkNotNull check on message. Which causes my existing code, that does log a null, to get an NPE. I think it was probably done to be like the checks on the other Optional fields.