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

        Level level = event.getLevel();
        switch (level.toInt()) {
            // ERROR等级为红色
            case Level.ERROR_INT:
                return LogbackConstant.RED_FG;
            // WARN等级为黄色
            case Level.WARN_INT:
                return LogbackConstant.YELLOW_FG;
            // INFO等级为蓝色
            case Level.INFO_INT:
                return LogbackConstant.GREEN_FG;
            // DEBUG等级为绿色
            case Level.DEBUG_INT:
                return LogbackConstant.BLUE_FG;
            // 其他为默认颜色
            default:
                return LogbackConstant.DEFAULT_FG;
        }
    
<no_super_class>