class MavenColorRenderer extends PatternRenderer {

    @Override
    protected void renderLevel(Event event, StringBuilder buff) {
        if (!isActivated) {
            buff.append("[");
            super.renderLevel(event, buff);
            buff.append("] ");
            return;
        }

        if (event.getLevel() == ERROR) {
            buff.append(ansi().fgBright(RED).bold().a("[" + ERROR.name() + "]").reset())
                .append(" ");
            return;
        }

        if (LogLevelActivation.isShown()) {
            if (event.getLevel() == WARN) {
                buff.append(ansi().fgBright(YELLOW).bold().a("[WARNING]").reset())
                    .append(" ");

            } else {
                buff.append("[");
                super.renderLevel(event, buff);
                buff.append("] ");
            }
        }
    }

    public  MavenColorRenderer();
    public  MavenColorRenderer(boolean isActivated);
    public  MavenColorRenderer(String pattern);
    public  MavenColorRenderer(String pattern, boolean isActivated);

}