01: /* Copyright 2004 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.container.services.log;
07:
08: import java.util.Properties;
09:
10: import javax.servlet.ServletConfig;
11:
12: import org.apache.pluto.services.log.Logger;
13: import org.jasig.portal.container.services.PortletContainerService;
14:
15: /**
16: * Implementation of Apache Pluto LogService.
17: * @author Ken Weiner, kweiner@unicon.net
18: * @version $Revision: 34757 $
19: */
20: public class LogServiceImpl implements PortletContainerService,
21: org.apache.pluto.services.log.LogService {
22:
23: private ServletConfig servletConfig = null;
24: private Properties properties = null;
25:
26: // PortletContainerService methods
27:
28: public void init(ServletConfig servletConfig, Properties properties)
29: throws Exception {
30: this .servletConfig = servletConfig;
31: this .properties = properties;
32: }
33:
34: public void destroy() throws Exception {
35: // Nothing to do at this time
36: }
37:
38: // LogService methods
39:
40: public Logger getLogger(Class klass) {
41: return new LoggerImpl(klass);
42: }
43:
44: public Logger getLogger(String component) {
45: return new LoggerImpl(component);
46: }
47:
48: }
|