* @deprecated When logging, prefer using a {@link Markers#appendArray(String, Object...)} marker
* with fieldName = "json_message" and objects = an array of arguments instead.
*/
@Deprecated
private void writeJsonMessageFieldIfNecessary(JsonGenerator generator, ILoggingEvent event) throws IOException {
final Marker marker = event.getMarker();
if (marker != null && marker.contains(JSON_MARKER_NAME)) {
generator.writeFieldName("json_message");
generator.writeObject(event.getArgumentArray());
}
}