JLabel label = (JLabel)super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
// Change the label's foreground color to match the level of the log record
if(!isSelected) {
LogLevel level = ((LoggingEvent)value).getLevel();
Color color;
if(level.equals(LogLevel.SEVERE))
color = Color.RED;
else if(level.equals(LogLevel.WARNING))
color = new Color(255, 100, 0); // Dark orange
else if(level.equals(LogLevel.CONFIG))
color = Color.BLUE;
else if(level.equals(LogLevel.INFO))
color = Color.BLACK;
else if(level.equals(LogLevel.FINE))
color = Color.DARK_GRAY;
else
color = new Color(110, 110, 110); // Between Color.GRAY and Color.DARK_GRAY
label.setForeground(color);