public static Logger staticGetLogger(String domain) { return getCORBALogger("_CORBA_", domain); }
public static Logger staticGetLogger(String domain) { return getCORBALogger("_CORBA_", domain); }
/** * Returns the logger based on the category. */ public Logger getLogger(String domain) { ORBData odata = getORBData(); // Determine the correct ORBId. There are 3 cases: // 1. odata is null, which happens if we are getting a logger before ORB initialization is complete. In this // case we cannot determine the ORB ID (it's not known yet), so we set the ORBId to _INITIALIZING_. // 2. odata is not null, so initialization is complete, but ORBId is set to the default "". To avoid a ".." in // the log domain, we simply use _DEFAULT_ in this case. // 3. odata is not null, ORBId is not "": just use the ORBId. String ORBId; if (odata == null) ORBId = "_INITIALIZING_"; else { ORBId = odata.getORBId(); if (ORBId.equals("")) ORBId = "_DEFAULT_"; } return getCORBALogger(ORBId, domain); }
/** * Returns the logger based on the category. */ public Logger getLogger(String domain) { ORBData odata = getORBData(); // Determine the correct ORBId. There are 3 cases: // 1. odata is null, which happens if we are getting a logger before ORB initialization is complete. In this // case we cannot determine the ORB ID (it's not known yet), so we set the ORBId to _INITIALIZING_. // 2. odata is not null, so initialization is complete, but ORBId is set to the default "". To avoid a ".." in // the log domain, we simply use _DEFAULT_ in this case. // 3. odata is not null, ORBId is not "": just use the ORBId. String ORBId; if (odata == null) ORBId = "_INITIALIZING_"; else { ORBId = odata.getORBId(); if (ORBId.equals("")) ORBId = "_DEFAULT_"; } return getCORBALogger(ORBId, domain); }