Package org.apache.log4j.chainsaw.color
Interface Colorizer
-
- All Known Implementing Classes:
RuleColorizer
public interface Colorizer
Given a LoggingEvent, can determine an appropriate Color to use based on whatever this implementation has been coded.- Author:
- Paul Smith <psmith@apache.org>, Scott Deboy <sdeboy@apache.org>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Color
getBackgroundColor(org.apache.log4j.spi.LoggingEvent event)
Given a LoggingEvent, returns a Color to use for background, or null if this instance cannot determine one, or that the stanard color should be used.Color
getForegroundColor(org.apache.log4j.spi.LoggingEvent event)
-
-
-
Method Detail
-
getBackgroundColor
Color getBackgroundColor(org.apache.log4j.spi.LoggingEvent event)
Given a LoggingEvent, returns a Color to use for background, or null if this instance cannot determine one, or that the stanard color should be used.- Parameters:
event
-- Returns:
- background color
-
getForegroundColor
Color getForegroundColor(org.apache.log4j.spi.LoggingEvent event)
-
-