The MongoDB Appender should use a keys and values for a
Log4j MapMessage.
Add a MongoDbProvider builder for and deprecate
org.apache.logging.log4j.mongodb.MongoDbProvider.createNoSqlProvider().
Oops, missed this one.
*/
package org.apache.logging.log4j.cassandra;
+import java.io.Serializable;
import java.net.InetSocketAddress;
import java.util.ArrayList;
import java.util.Date;
@@ -86,8 +87,14 @@ public class CassandraManager extends AbstractDatabaseManager {
// a Session automatically manages connections for us
}
+ @Deprecated
@Override
protected void writeInternal(final LogEvent event) {
+ writeInternal(event, null);
+ }
+
+ @Override
+ protected void writeInternal(final LogEvent event, final Serializable serializable) {
for (int i = 0; i < columnMappings.size(); i++) {
final ColumnMapping columnMapping = columnMappings.get(i);
if (ThreadContextMap.class.isAssignableFrom(columnMapping.getType())
