You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although LoggingEvent#getFormattedMessage() isn't public (#28), its code is still usable as a reference. However, it doesn't present null values the same way as SLF4J, due to un-matched wrapping/unwrapping of Optional:
LoggingEvent e = new LoggingEvent(Level.INFO, "Content: {}, {}", null, "value");
System.out.println(MessageFormatter.arrayFormat(e.getMessage(), e.getArguments().toArray()).getMessage());
Produces:
Content: Optional.absent(), value
Rather than the expected:
Content: null, value
The text was updated successfully, but these errors were encountered:
Although
LoggingEvent#getFormattedMessage()
isn't public (#28), its code is still usable as a reference. However, it doesn't presentnull
values the same way as SLF4J, due to un-matched wrapping/unwrapping ofOptional
:Produces:
Rather than the expected:
The text was updated successfully, but these errors were encountered: