use of org.springframework.core.codec.AbstractEncoder in project spring-framework by spring-projects.
the class EncoderHttpMessageWriter method initLogger.
private static void initLogger(Encoder<?> encoder) {
if (encoder instanceof AbstractEncoder && encoder.getClass().getName().startsWith("org.springframework.core.codec")) {
Log logger = HttpLogging.forLog(((AbstractEncoder<?>) encoder).getLogger());
((AbstractEncoder<?>) encoder).setLogger(logger);
}
}
Aggregations