log4mongo / log4mongo-java

log4j appender to MongoDB database
http://log4mongo.org
Apache License 2.0
80 stars 29 forks source link

LoggingEventBsonifierImpl.nullSafePut: supporting StringBuffer #15

Closed igortochansky closed 11 years ago

igortochansky commented 11 years ago

Sometimes people logs StringBuffer objects instead of strings. For example, i faced this problem in datanucleus: http://www.datanucleus.org/servlet/jira/browse/NUCMONGODB-116

The suggestion is to support StringBuffer in the LoggingEventBsonifierImpl.nullSafePut.

RobertStewart commented 11 years ago

Makes sense. I'll put this in soon.

RobertStewart commented 11 years ago

Fixed with commit 9ac11f5107ec15870e0c8d71a8befeb465beb5a4.