Exemple #1
0
 /** Creates a logger based on the named entry in the default logging.xml config file. */
 public static Logger getLogger(String name)
     throws com.grey.base.ConfigException, java.io.IOException {
   if (leadingNameParts != 0 && name != null) {
     name = StringOps.keepLeadingParts(name, delimiterNameParts, leadingNameParts);
   }
   return getLogger(DFLT_CFGFILE, name);
 }
Exemple #2
0
 public static Logger getLoggerNoEx(String name) {
   if (leadingNameParts != 0 && name != null) {
     name = StringOps.keepLeadingParts(name, delimiterNameParts, leadingNameParts);
   }
   try {
     return getLogger(DFLT_CFGFILE, name);
   } catch (Exception ex) {
     throw new RuntimeException(
         "GreyLog-Factory failed to create logger="
             + name
             + " - "
             + com.grey.base.GreyException.summary(ex));
   }
 }