KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jzonic > jlo > handler > ConsoleHandler


1 package org.jzonic.jlo.handler;
2
3 import org.jzonic.jlo.LogRecord;
4
5 import java.util.Map JavaDoc;
6 /**
7  *@author Andreas Mecky
8  *@author Terry Dye
9  *@created 9. März 2002
10  *@version 1.0
11  */

12 public class ConsoleHandler extends AbstractHandler {
13     
14     /**
15      * Constructor for the ConsoleHandler object
16      */

17     public ConsoleHandler(String JavaDoc configName) {
18         super(configName);
19     }
20     
21     
22     /**
23      *@param msg
24      */

25     public void publish(String JavaDoc msg) {
26         System.out.println(msg);
27     }
28     
29     
30     /**
31      * Description of the Method
32      *
33      *@param lr Description of the Parameter
34      */

35     public void publish(LogRecord lr) {
36         publish(lr.getMessage());
37     }
38     
39     
40     /**
41      *@param parameters
42      */

43     public void setParameter(Map JavaDoc parameters) {
44     }
45 }
46
Popular Tags