1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.log4j.chainsaw.color;
19
20 import org.apache.log4j.spi.LoggingEvent;
21
22 import java.awt.Color;
23
24
25 /***
26 * Given a LoggingEvent, can determine an appropriate
27 * Color to use based on whatever this implementation
28 * has been coded.
29 *
30 * @author Paul Smith <psmith@apache.org>
31 * @author Scott Deboy <sdeboy@apache.org>
32 */
33 public interface Colorizer {
34 /***
35 * Given a LoggingEvent, returns a Color to use for background,
36 * or null if this instance cannot determine one, or that
37 * the stanard color should be used.
38 * @param event
39 * @return background color
40 */
41 public Color getBackgroundColor(LoggingEvent event);
42
43 public Color getForegroundColor(LoggingEvent event);
44 }