KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jzonic > jlo > processor > LogProcessor


1 /*
2  * LogProcessor.java
3  *
4  * Created on 19. Januar 2003, 17:56
5  */

6
7 package org.jzonic.jlo.processor;
8
9 import org.jzonic.jlo.LogGenerator;
10 import org.jzonic.jlo.LogRecord;
11 /**
12  * This interface defines all methods to process the log requests.
13  * The concrete implementations will handle the physical logging.
14  *
15  * @author Andreas Mecky
16  * @author Terry Dye
17  */

18 public interface LogProcessor {
19     
20     /**
21      * @param lg the LogGenerator that will format and then handle the request
22      * @param lr the LogRecord containing all informations that should be logged
23      */

24      public void processEvent(LogGenerator lg,LogRecord lr);
25         
26      /**
27       * This method should flush the entire content
28       */

29      public void flush();
30      
31      /**
32       * This method returns the name of the logprocessor
33       */

34      public String JavaDoc getProcessorName();
35 }
36
Popular Tags