KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > portal > wsrp > logging > WSRPLogManager


1 /*
2  * Copyright 2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.cocoon.portal.wsrp.logging;
17
18 import org.apache.wsrp4j.log.LogManager;
19 import org.apache.wsrp4j.log.Logger;
20
21 /**
22  * This log manager implementation just always returns the portal logger.<br/>
23  *
24  * @author <a HREF="mailto:cziegeler@s-und-n.de">Carsten Ziegeler</a>
25  * @author <a HREF="mailto:malessandrini@s-und-n.de">Michel Alessandrini</a>
26  *
27  * @version $Id: WSRPLogManager.java 264755 2005-08-30 10:29:21Z cziegeler $
28  */

29 public class WSRPLogManager extends LogManager {
30
31     /** The logger-object */
32     protected final WSRPLogger logger;
33
34     /**
35      * constructor<br/>
36      *
37      * @param logger
38      */

39     public WSRPLogManager(WSRPLogger logger) {
40         this.logger = logger;
41     }
42
43     /**
44      * @see org.apache.wsrp4j.log.LogManager#getLogger(java.lang.Class)
45      */

46     public Logger getLogger(Class JavaDoc arg0) {
47         return this.logger;
48     }
49
50 }
51
Popular Tags