1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 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 klass);
47
48 }