/** * Gets a named logger. The returned logger may already exist or may be * newly created. In the latter case, its level will be set to the * configured level according to the {@code LogManager}'s properties. * * @param name * the name of the logger to get, cannot be {@code null}. * @return a named logger. * @throws MissingResourceException * If the specified resource bundle can not be loaded. */ public static Logger getLogger(String name) { return LogManager.getLogManager().getOrCreate(name, null); }
/** * 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. The returned logger may already exist or may be * newly created. In the latter case, its level will be set to the * configured level according to the {@code LogManager}'s properties. * * @param name * the name of the logger to get, cannot be {@code null}. * @return a named logger. * @throws MissingResourceException * If the specified resource bundle can not be loaded. */ public static Logger getLogger(String name) { return LogManager.getLogManager().getOrCreate(name, null); }
public static Logger getLogger(String name) { return LogManager.getLogManager().getOrCreate(name, null); }
/** * Gets a named logger. The returned logger may already exist or may be * newly created. In the latter case, its level will be set to the * configured level according to the {@code LogManager}'s properties. * * @param name * the name of the logger to get, cannot be {@code null}. * @return a named logger. * @throws MissingResourceException * If the specified resource bundle can not be loaded. */ public static Logger getLogger(String name) { return LogManager.getLogManager().getOrCreate(name, null); }
/** * Gets a named logger. The returned logger may already exist or may be * newly created. In the latter case, its level will be set to the * configured level according to the {@code LogManager}'s properties. * * @param name * the name of the logger to get, cannot be {@code null}. * @return a named logger. * @throws MissingResourceException * If the specified resource bundle can not be loaded. */ public static Logger getLogger(String name) { return LogManager.getLogManager().getOrCreate(name, null); }
/** * Gets a named logger. The returned logger may already exist or may be * newly created. In the latter case, its level will be set to the * configured level according to the {@code LogManager}'s properties. * * @param name * the name of the logger to get, cannot be {@code null}. * @return a named logger. * @throws MissingResourceException * If the specified resource bundle can not be loaded. */ public static Logger getLogger(String name) { return LogManager.getLogManager().getOrCreate(name, null); }
/** * Gets a named logger. The returned logger may already exist or may be * newly created. In the latter case, its level will be set to the * configured level according to the {@code LogManager}'s properties. * * @param name * the name of the logger to get, cannot be {@code null}. * @return a named logger. * @throws MissingResourceException * If the specified resource bundle can not be loaded. */ public static Logger getLogger(String name) { return LogManager.getLogManager().getOrCreate(name, null); }
/** * Gets a named logger. The returned logger may already exist or may be * newly created. In the latter case, its level will be set to the * configured level according to the {@code LogManager}'s properties. * * @param name * the name of the logger to get, cannot be {@code null}. * @return a named logger. * @throws MissingResourceException * If the specified resource bundle can not be loaded. */ public static Logger getLogger(String name) { return LogManager.getLogManager().getOrCreate(name, null); }
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; }
/** * 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; }