class MdcColorConverter extends ForegroundCompositeConverterBase<ILoggingEvent> {
    @Override
    protected String getForegroundColorCode(ILoggingEvent event) {<FILL_FUNCTION_BODY>}
}

        String ansiColor = event.getMDCPropertyMap().get(LogbackConstant.ANSI_COLOR);

        return StringUtils.isNotEmpty(ansiColor) ? ansiColor : LogbackConstant.DEFAULT_FG;
    
<no_super_class>