1 23 package com.sun.logging; 24 25 import java.util.logging.Logger ; 26 27 30 public class LogDomains 31 { 32 33 37 public static final String DOMAIN_ROOT = "javax."; 38 39 44 public static final String PACKAGE_ROOT = "com.sun.logging."; 45 46 49 public static final String RESOURCE_BUNDLE = "LogStrings"; 50 51 54 public static final String TOOLS_LOGGER = DOMAIN_ROOT + "enterprise.system.tools"; 55 56 59 public static final String EJB_LOGGER = DOMAIN_ROOT + "enterprise.system.container.ejb"; 60 61 64 public static final String JAVAMAIL_LOGGER = DOMAIN_ROOT + "enterprise.resource.javamail"; 65 66 70 71 72 75 public static final String JMS_LOGGER = DOMAIN_ROOT + "enterprise.resource.jms"; 76 77 80 public static final String WEB_LOGGER = DOMAIN_ROOT + "enterprise.system.container.web"; 81 82 85 public static final String CMP_LOGGER = DOMAIN_ROOT + "enterprise.system.container.cmp"; 86 87 90 public static final String JDO_LOGGER = DOMAIN_ROOT + "enterprise.resource.jdo"; 91 92 95 public static final String ACC_LOGGER = DOMAIN_ROOT + "enterprise.system.container.appclient"; 96 97 100 public static final String MDB_LOGGER = DOMAIN_ROOT + "enterprise.system.container.ejb.mdb"; 101 102 105 public static final String SECURITY_LOGGER = DOMAIN_ROOT + "enterprise.system.core.security"; 106 107 110 public static final String TRANSACTION_LOGGER = DOMAIN_ROOT + "enterprise.system.core.transaction"; 111 112 115 public static final String CORBA_LOGGER = DOMAIN_ROOT + "enterprise.resource.corba"; 116 117 120 public static final String ROOT_LOGGER = DOMAIN_ROOT + "enterprise"; 121 124 128 public static final String UTIL_LOGGER = DOMAIN_ROOT + "enterprise.system.util"; 129 132 public static final String NAMING_LOGGER = DOMAIN_ROOT + "enterprise.system.core.naming"; 133 134 137 public static final String JNDI_LOGGER = DOMAIN_ROOT + "enterprise.system.core.naming"; 138 141 public static final String APPVERIFY_LOGGER = DOMAIN_ROOT + "enterprise.system.tools.verifier"; 142 145 public static final String ACTIVATION_LOGGER = DOMAIN_ROOT + "enterprise.system.activation"; 146 149 public static final String JTA_LOGGER = DOMAIN_ROOT + "enterprise.resource.jta"; 150 151 154 155 public static final String RSR_LOGGER = DOMAIN_ROOT + "enterprise.resource.resourceadapter"; 156 158 161 public static final String DPL_LOGGER = DOMAIN_ROOT + "enterprise.system.tools.deployment"; 162 163 166 public static final String DPLAUDIT_LOGGER = DOMAIN_ROOT + "enterprise.system.tools.deployment.audit"; 167 168 171 public static final String DIAGNOSTICS_LOGGER = DOMAIN_ROOT + "enterprise.system.tools.diagnostics"; 172 173 174 public static final String JAXRPC_LOGGER = DOMAIN_ROOT + "enterprise.system.webservices.rpc"; 175 176 177 public static final String JAXR_LOGGER = DOMAIN_ROOT + "enterprise.system.webservices.registry"; 178 179 180 public static final String SAAJ_LOGGER = DOMAIN_ROOT + "enterprise.system.webservices.saaj"; 181 182 183 public static final String SELF_MANAGEMENT_LOGGER = DOMAIN_ROOT + "enterprise.system.core.selfmanagement"; 184 185 186 189 public static final String ADMIN_LOGGER = 190 DOMAIN_ROOT + "enterprise.system.tools.admin"; 191 192 public static final String SERVER_LOGGER= DOMAIN_ROOT + "enterprise.system"; 193 194 public static final String CORE_LOGGER= DOMAIN_ROOT + "enterprise.system.core"; 195 196 public static final String LOADER_LOGGER= DOMAIN_ROOT + "enterprise.system.core.classloading"; 197 198 199 public static final String CONFIG_LOGGER = DOMAIN_ROOT + "enterprise.system.core.config"; 200 201 202 public static final String PROCESS_LAUNCHER_LOGGER = DOMAIN_ROOT + "enterprise.tools.launcher"; 203 204 205 public static final String GMS_LOGGER = DOMAIN_ROOT +"ee.enterprise.system.gms"; 206 207 208 213 private static String getLoggerResourceBundleName(String loggerName) { 214 String result = loggerName + "." + RESOURCE_BUNDLE; 215 return result.replaceFirst(DOMAIN_ROOT, PACKAGE_ROOT); 216 } 217 218 226 public static Logger getLogger(String name) { 227 return Logger.getLogger(name, getLoggerResourceBundleName(name)); 228 } 229 } 230 | Popular Tags |