01: /*
02: * LogProcessor.java
03: *
04: * Created on 19. Januar 2003, 17:56
05: */
06:
07: package org.jzonic.jlo.processor;
08:
09: import org.jzonic.jlo.LogGenerator;
10: import org.jzonic.jlo.LogRecord;
11:
12: /**
13: * This interface defines all methods to process the log requests.
14: * The concrete implementations will handle the physical logging.
15: *
16: * @author Andreas Mecky
17: * @author Terry Dye
18: */
19: public interface LogProcessor {
20:
21: /**
22: * @param lg the LogGenerator that will format and then handle the request
23: * @param lr the LogRecord containing all informations that should be logged
24: */
25: public void processEvent(LogGenerator lg, LogRecord lr);
26:
27: /**
28: * This method should flush the entire content
29: */
30: public void flush();
31:
32: /**
33: * This method returns the name of the logprocessor
34: */
35: public String getProcessorName();
36: }
|