/** * Gets a named logger associated with the supplied resource bundle. The * resource bundle will be used to localize logging messages. * * @param name * the name of the logger to get, cannot be {@code null}. * @param resourceBundleName * the name of the resource bundle, may be {@code null}. * @throws IllegalArgumentException * if the logger identified by {@code name} is associated with a * resource bundle and its name is not equal to * {@code resourceBundleName}. * @throws MissingResourceException * if the name of the resource bundle cannot be found. * @return a named logger. */ public static Logger getLogger(String name, String resourceBundleName) { Logger result = LogManager.getLogManager() .getOrCreate(name, resourceBundleName); result.initResourceBundle(resourceBundleName); return result; }
/** * Constructs a {@code Logger} object with the supplied name and resource * bundle name; {@code notifiyParentHandlers} is set to {@code true}. * <p> * Notice : Loggers use a naming hierarchy. Thus "z.x.y" is a child of "z.x". * * @param name * the name of this logger, may be {@code null} for anonymous * loggers. * @param resourceBundleName * the name of the resource bundle used to localize logging * messages, may be {@code null}. * @throws MissingResourceException * if the specified resource bundle can not be loaded. */ protected Logger(String name, String resourceBundleName) { this.name = name; initResourceBundle(resourceBundleName); this.androidTag = DalvikLogging.loggerNameToTag(name); updateDalvikLogHandler(); }
public static Logger getLogger(String name, String resourceBundleName) { Logger result = LogManager.getLogManager().getOrCreate(name, resourceBundleName); result.initResourceBundle(resourceBundleName); return result; }
protected Logger(String name, String resourceBundleName) { this.name = name; initResourceBundle(resourceBundleName); updateVmLogHandler(); }
/** * Gets a named logger associated with the supplied resource bundle. The * resource bundle will be used to localize logging messages. * * @param name * the name of the logger to get, cannot be {@code null}. * @param resourceBundleName * the name of the resource bundle, may be {@code null}. * @throws IllegalArgumentException * if the logger identified by {@code name} is associated with a * resource bundle and its name is not equal to * {@code resourceBundleName}. * @throws MissingResourceException * if the name of the resource bundle cannot be found. * @return a named logger. */ public static Logger getLogger(String name, String resourceBundleName) { Logger result = LogManager.getLogManager() .getOrCreate(name, resourceBundleName); result.initResourceBundle(resourceBundleName); return result; }
/** * Gets a named logger associated with the supplied resource bundle. The * resource bundle will be used to localize logging messages. * * @param name * the name of the logger to get, cannot be {@code null}. * @param resourceBundleName * the name of the resource bundle, may be {@code null}. * @throws IllegalArgumentException * if the logger identified by {@code name} is associated with a * resource bundle and its name is not equal to * {@code resourceBundleName}. * @throws MissingResourceException * if the name of the resource bundle cannot be found. * @return a named logger. */ public static Logger getLogger(String name, String resourceBundleName) { Logger result = LogManager.getLogManager() .getOrCreate(name, resourceBundleName); result.initResourceBundle(resourceBundleName); return result; }
/** * Gets a named logger associated with the supplied resource bundle. The * resource bundle will be used to localize logging messages. * * @param name * the name of the logger to get, cannot be {@code null}. * @param resourceBundleName * the name of the resource bundle, may be {@code null}. * @throws IllegalArgumentException * if the logger identified by {@code name} is associated with a * resource bundle and its name is not equal to * {@code resourceBundleName}. * @throws MissingResourceException * if the name of the resource bundle cannot be found. * @return a named logger. */ public static Logger getLogger(String name, String resourceBundleName) { Logger result = LogManager.getLogManager() .getOrCreate(name, resourceBundleName); result.initResourceBundle(resourceBundleName); return result; }
/** * Gets a named logger associated with the supplied resource bundle. The * resource bundle will be used to localize logging messages. * * @param name * the name of the logger to get, cannot be {@code null}. * @param resourceBundleName * the name of the resource bundle, may be {@code null}. * @throws IllegalArgumentException * if the logger identified by {@code name} is associated with a * resource bundle and its name is not equal to * {@code resourceBundleName}. * @throws MissingResourceException * if the name of the resource bundle cannot be found. * @return a named logger. */ public static Logger getLogger(String name, String resourceBundleName) { Logger result = LogManager.getLogManager() .getOrCreate(name, resourceBundleName); result.initResourceBundle(resourceBundleName); return result; }
/** * Gets a named logger associated with the supplied resource bundle. The * resource bundle will be used to localize logging messages. * * @param name * the name of the logger to get, cannot be {@code null}. * @param resourceBundleName * the name of the resource bundle, may be {@code null}. * @throws IllegalArgumentException * if the logger identified by {@code name} is associated with a * resource bundle and its name is not equal to * {@code resourceBundleName}. * @throws MissingResourceException * if the name of the resource bundle cannot be found. * @return a named logger. */ public static Logger getLogger(String name, String resourceBundleName) { Logger result = LogManager.getLogManager() .getOrCreate(name, resourceBundleName); result.initResourceBundle(resourceBundleName); return result; }
/** * Gets a named logger associated with the supplied resource bundle. The * resource bundle will be used to localize logging messages. * * @param name * the name of the logger to get, cannot be {@code null}. * @param resourceBundleName * the name of the resource bundle, may be {@code null}. * @throws IllegalArgumentException * if the logger identified by {@code name} is associated with a * resource bundle and its name is not equal to * {@code resourceBundleName}. * @throws MissingResourceException * if the name of the resource bundle cannot be found. * @return a named logger. */ public static Logger getLogger(String name, String resourceBundleName) { Logger result = LogManager.getLogManager() .getOrCreate(name, resourceBundleName); result.initResourceBundle(resourceBundleName); return result; }
/** * Constructs a {@code Logger} object with the supplied name and resource * bundle name; {@code notifiyParentHandlers} is set to {@code true}. * <p> * Notice : Loggers use a naming hierarchy. Thus "z.x.y" is a child of "z.x". * * @param name * the name of this logger, may be {@code null} for anonymous * loggers. * @param resourceBundleName * the name of the resource bundle used to localize logging * messages, may be {@code null}. * @throws MissingResourceException * if the specified resource bundle can not be loaded. */ protected Logger(String name, String resourceBundleName) { this.name = name; initResourceBundle(resourceBundleName); this.androidTag = DalvikLogging.loggerNameToTag(name); updateDalvikLogHandler(); }
/** * Constructs a {@code Logger} object with the supplied name and resource * bundle name; {@code notifiyParentHandlers} is set to {@code true}. * <p> * Notice : Loggers use a naming hierarchy. Thus "z.x.y" is a child of "z.x". * * @param name * the name of this logger, may be {@code null} for anonymous * loggers. * @param resourceBundleName * the name of the resource bundle used to localize logging * messages, may be {@code null}. * @throws MissingResourceException * if the specified resource bundle can not be loaded. */ protected Logger(String name, String resourceBundleName) { this.name = name; initResourceBundle(resourceBundleName); this.androidTag = DalvikLogging.loggerNameToTag(name); updateDalvikLogHandler(); }
/** * Constructs a {@code Logger} object with the supplied name and resource * bundle name; {@code notifiyParentHandlers} is set to {@code true}. * <p> * Notice : Loggers use a naming hierarchy. Thus "z.x.y" is a child of "z.x". * * @param name * the name of this logger, may be {@code null} for anonymous * loggers. * @param resourceBundleName * the name of the resource bundle used to localize logging * messages, may be {@code null}. * @throws MissingResourceException * if the specified resource bundle can not be loaded. */ protected Logger(String name, String resourceBundleName) { this.name = name; initResourceBundle(resourceBundleName); this.androidTag = DalvikLogging.loggerNameToTag(name); updateDalvikLogHandler(); }
/** * Constructs a {@code Logger} object with the supplied name and resource * bundle name; {@code notifiyParentHandlers} is set to {@code true}. * <p> * Notice : Loggers use a naming hierarchy. Thus "z.x.y" is a child of "z.x". * * @param name * the name of this logger, may be {@code null} for anonymous * loggers. * @param resourceBundleName * the name of the resource bundle used to localize logging * messages, may be {@code null}. * @throws MissingResourceException * if the specified resource bundle can not be loaded. */ protected Logger(String name, String resourceBundleName) { this.name = name; initResourceBundle(resourceBundleName); this.androidTag = DalvikLogging.loggerNameToTag(name); updateDalvikLogHandler(); }
/** * Constructs a {@code Logger} object with the supplied name and resource * bundle name; {@code notifiyParentHandlers} is set to {@code true}. * <p> * Notice : Loggers use a naming hierarchy. Thus "z.x.y" is a child of "z.x". * * @param name * the name of this logger, may be {@code null} for anonymous * loggers. * @param resourceBundleName * the name of the resource bundle used to localize logging * messages, may be {@code null}. * @throws MissingResourceException * if the specified resource bundle can not be loaded. */ protected Logger(String name, String resourceBundleName) { this.name = name; initResourceBundle(resourceBundleName); this.androidTag = DalvikLogging.loggerNameToTag(name); updateDalvikLogHandler(); }
/** * Constructs a {@code Logger} object with the supplied name and resource * bundle name; {@code notifiyParentHandlers} is set to {@code true}. * <p> * Notice : Loggers use a naming hierarchy. Thus "z.x.y" is a child of "z.x". * * @param name * the name of this logger, may be {@code null} for anonymous * loggers. * @param resourceBundleName * the name of the resource bundle used to localize logging * messages, may be {@code null}. * @throws MissingResourceException * if the specified resource bundle can not be loaded. */ protected Logger(String name, String resourceBundleName) { this.name = name; initResourceBundle(resourceBundleName); this.androidTag = DalvikLogging.loggerNameToTag(name); updateDalvikLogHandler(); }