01: /**
02: * $Id: PASLogger.java,v 1.1 2005/09/20 18:55:25 yue Exp $
03: * Copyright 2005 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.admin.server;
14:
15: import java.lang.reflect.Method;
16: import java.util.logging.Logger;
17:
18: import com.sun.portal.admin.common.util.AdminUtil;
19:
20: public class PASLogger {
21: private static Logger logger = null;
22:
23: static {
24: try {
25: Class cls = Class
26: .forName("com.sun.portal.log.common.PortalLogger");
27: Method method = cls.getMethod("getLogger",
28: new Class[] { Class.class });
29: logger = (Logger) method.invoke(null,
30: new Object[] { PASLogger.class });
31: } catch (Throwable t) {
32: logger = Logger.getLogger(AdminUtil.JMX_DOMAIN);
33: }
34: }
35:
36: public static Logger getLogger() {
37: return logger;
38: }
39: }
|