KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > pluto > services > log > LogService


1 /*
2  * Copyright 2003,2004 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 /*
17
18  */

19
20 package org.apache.pluto.services.log;
21
22 import org.apache.pluto.services.ContainerService;
23
24 /** Implemented in order to provides access to
25  * a custom Logger implementation. The Logger
26  * provides component aware logging capabilities.
27  *
28  */

29 public interface LogService extends ContainerService {
30
31     /** Used to retrieve a Logger implementation
32      * which can be used to log information for the given
33      * component.
34      * @param component the component for which the desired logger should be
35      * retrieved.
36      * @return logger implementation associated with the named component.
37      */

38     Logger getLogger(String JavaDoc component);
39
40     /** Used to retrieve a Logger implementation
41      * which can be used to log information for the given
42      * Class.
43      * @param klass the class for which the desired logger should be retrieved.
44      * @return logger implementation associated with the specified Class.
45      */

46     Logger getLogger(Class JavaDoc klass);
47
48 }
49
Popular Tags