KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > deliver > util > graphics > FOPCmsLogger


1 /* ===============================================================================
2 *
3 * Part of the InfoGlue Content Management Platform (www.infoglue.org)
4 *
5 * ===============================================================================
6 *
7 * Copyright (C)
8 *
9 * This program is free software; you can redistribute it and/or modify it under
10 * the terms of the GNU General Public License version 2, as published by the
11 * Free Software Foundation. See the file LICENSE.html for more information.
12 *
13 * This program is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY, including the implied warranty of MERCHANTABILITY or FITNESS
15 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along with
18 * this program; if not, write to the Free Software Foundation, Inc. / 59 Temple
19 * Place, Suite 330 / Boston, MA 02111-1307 / USA.
20 *
21 * ===============================================================================
22 */

23
24 package org.infoglue.deliver.util.graphics;
25
26 import org.apache.avalon.framework.logger.Logger;
27
28
29 /**
30  * @author Stefan Sik
31  *
32  * Mapping Avalon Logger to CmsLogger.
33  *
34  */

35 public class FOPCmsLogger implements Logger
36 {
37     private final static org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(FOPCmsLogger.class.getName());
38
39     public void debug(String JavaDoc arg0) {
40         logger.info(arg0);
41     }
42
43     public void debug(String JavaDoc arg0, Throwable JavaDoc arg1) {
44         logger.info(arg0, (Exception JavaDoc) arg1);
45     }
46
47     public boolean isDebugEnabled() {
48         // TODO: Implement and Check CmsLogger.getLogLevel()
49
return false;
50     }
51
52     public void info(String JavaDoc arg0) {
53         logger.info(arg0);
54     }
55
56     public void info(String JavaDoc arg0, Throwable JavaDoc arg1) {
57         logger.info(arg0, (Exception JavaDoc) arg1);
58     }
59
60     public boolean isInfoEnabled() {
61         // TODO Auto-generated method stub
62
return false;
63     }
64
65     public void warn(String JavaDoc arg0) {
66         logger.warn(arg0);
67     }
68
69     public void warn(String JavaDoc arg0, Throwable JavaDoc arg1) {
70         logger.warn(arg0, (Exception JavaDoc) arg1);
71         
72     }
73
74     public boolean isWarnEnabled() {
75         // TODO Auto-generated method stub
76
return false;
77     }
78
79     public void error(String JavaDoc arg0) {
80         logger.error(arg0);
81         
82     }
83
84     public void error(String JavaDoc arg0, Throwable JavaDoc arg1) {
85         logger.error(arg0, (Exception JavaDoc) arg1);
86         
87     }
88
89     public boolean isErrorEnabled() {
90         // TODO Auto-generated method stub
91
return false;
92     }
93
94     public void fatalError(String JavaDoc arg0) {
95         logger.error(arg0);
96         
97     }
98
99     public void fatalError(String JavaDoc arg0, Throwable JavaDoc arg1) {
100         logger.error(arg0, (Exception JavaDoc) arg1);
101     }
102
103     public boolean isFatalErrorEnabled() {
104         // TODO Auto-generated method stub
105
return false;
106     }
107
108     public Logger getChildLogger(String JavaDoc arg0) {
109         return null;
110     }
111 }
112
Popular Tags