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
With the Log4 API it is possible to log java.lang.Object an not only String.
The class org.apache.log4j.Category contains the methode:
public void info(Object message) { [...] }
If you try to log such an object you'll get an IllegalArgumentException in the methode org.bson.BasicBSONEncoder._putObjectField().
To fix this issue we should change a line in the LoggingEventBsonifierImpl.
From nullSafePut(result, KEY_MESSAGE, loggingEvent.getMessage());
To nullSafePut(result, KEY_MESSAGE, loggingEvent.getRenderedMessage());
The text was updated successfully, but these errors were encountered:
With the Log4 API it is possible to log java.lang.Object an not only String.
The class org.apache.log4j.Category contains the methode:
public void info(Object message) { [...] }
If you try to log such an object you'll get an IllegalArgumentException in the methode
org.bson.BasicBSONEncoder._putObjectField()
.To fix this issue we should change a line in the LoggingEventBsonifierImpl.
From
nullSafePut(result, KEY_MESSAGE, loggingEvent.getMessage());
To
nullSafePut(result, KEY_MESSAGE, loggingEvent.getRenderedMessage());
The text was updated successfully, but these errors were encountered: