01: package org.jzonic.jlo.handler;
02:
03: import org.jzonic.jlo.LogRecord;
04:
05: import java.util.Map;
06:
07: /**
08: *@author Andreas Mecky
09: *@author Terry Dye
10: *@created 9. März 2002
11: *@version 1.0
12: */
13: public class ConsoleHandler extends AbstractHandler {
14:
15: /**
16: * Constructor for the ConsoleHandler object
17: */
18: public ConsoleHandler(String configName) {
19: super (configName);
20: }
21:
22: /**
23: *@param msg
24: */
25: public void publish(String msg) {
26: System.out.println(msg);
27: }
28:
29: /**
30: * Description of the Method
31: *
32: *@param lr Description of the Parameter
33: */
34: public void publish(LogRecord lr) {
35: publish(lr.getMessage());
36: }
37:
38: /**
39: *@param parameters
40: */
41: public void setParameter(Map parameters) {
42: }
43: }
|