/** * Sets the parent of this logger in the namespace. This method should be * used by the {@code LogManager} object only. * * @param parent * the parent logger to set. */ public void setParent(Logger parent) { if (parent == null) { throw new NullPointerException("parent == null"); } // even anonymous loggers are checked LogManager logManager = LogManager.getLogManager(); logManager.checkAccess(); logManager.setParent(this, parent); }
/** * Gets an anonymous logger to use internally in a thread. Anonymous loggers * are not registered in the log manager's namespace. No security checks * will be performed when updating an anonymous logger's control settings. * <p> * The anonymous loggers' parent is set to be the root logger. This way it * inherits default logging level and handlers from the root logger. * * @param resourceBundleName * the name of the resource bundle used to localize log messages. * @return a new instance of anonymous logger. * @throws MissingResourceException * if the specified resource bundle can not be loaded. */ public static Logger getAnonymousLogger(String resourceBundleName) { Logger result = new Logger(null, resourceBundleName); result.isNamed = false; LogManager logManager = LogManager.getLogManager(); logManager.setParent(result, logManager.getLogger("")); return result; }
public void setParent(Logger parent) { if (parent == null) throw new NullPointerException("parent == null"); // even anonymous loggers are checked LogManager logManager = LogManager.getLogManager(); logManager.checkAccess(); logManager.setParent(this, parent); }
/** * Sets the parent of this logger in the namespace. This method should be * used by the {@code LogManager} object only. * * @param parent * the parent logger to set. */ public void setParent(Logger parent) { if (parent == null) { throw new NullPointerException("parent == null"); } // even anonymous loggers are checked LogManager logManager = LogManager.getLogManager(); logManager.checkAccess(); logManager.setParent(this, parent); }
/** * Sets the parent of this logger in the namespace. This method should be * used by the {@code LogManager} object only. * * @param parent * the parent logger to set. */ public void setParent(Logger parent) { if (parent == null) { throw new NullPointerException("parent == null"); } // even anonymous loggers are checked LogManager logManager = LogManager.getLogManager(); logManager.checkAccess(); logManager.setParent(this, parent); }
/** * Sets the parent of this logger in the namespace. This method should be * used by the {@code LogManager} object only. * * @param parent * the parent logger to set. */ public void setParent(Logger parent) { if (parent == null) { throw new NullPointerException("parent == null"); } // even anonymous loggers are checked LogManager logManager = LogManager.getLogManager(); logManager.checkAccess(); logManager.setParent(this, parent); }
/** * Sets the parent of this logger in the namespace. This method should be * used by the {@code LogManager} object only. * * @param parent * the parent logger to set. */ public void setParent(Logger parent) { if (parent == null) { throw new NullPointerException("parent == null"); } // even anonymous loggers are checked LogManager logManager = LogManager.getLogManager(); logManager.checkAccess(); logManager.setParent(this, parent); }
/** * Sets the parent of this logger in the namespace. This method should be * used by the {@code LogManager} object only. * * @param parent * the parent logger to set. */ public void setParent(Logger parent) { if (parent == null) { throw new NullPointerException("parent == null"); } // even anonymous loggers are checked LogManager logManager = LogManager.getLogManager(); logManager.checkAccess(); logManager.setParent(this, parent); }
/** * Sets the parent of this logger in the namespace. This method should be * used by the {@code LogManager} object only. * * @param parent * the parent logger to set. */ public void setParent(Logger parent) { if (parent == null) { throw new NullPointerException("parent == null"); } // even anonymous loggers are checked LogManager logManager = LogManager.getLogManager(); logManager.checkAccess(); logManager.setParent(this, parent); }
public static Logger getAnonymousLogger(String resourceBundleName) { Logger result = new Logger(null, resourceBundleName); result.isNamed = false; LogManager logManager = LogManager.getLogManager(); logManager.setParent(result, logManager.getLogger("")); return result; }
/** * Gets an anonymous logger to use internally in a thread. Anonymous loggers * are not registered in the log manager's namespace. No security checks * will be performed when updating an anonymous logger's control settings. * <p> * The anonymous loggers' parent is set to be the root logger. This way it * inherits default logging level and handlers from the root logger. * * @param resourceBundleName * the name of the resource bundle used to localize log messages. * @return a new instance of anonymous logger. * @throws MissingResourceException * if the specified resource bundle can not be loaded. */ public static Logger getAnonymousLogger(String resourceBundleName) { Logger result = new Logger(null, resourceBundleName); result.isNamed = false; LogManager logManager = LogManager.getLogManager(); logManager.setParent(result, logManager.getLogger("")); return result; }
/** * Gets an anonymous logger to use internally in a thread. Anonymous loggers * are not registered in the log manager's namespace. No security checks * will be performed when updating an anonymous logger's control settings. * <p> * The anonymous loggers' parent is set to be the root logger. This way it * inherits default logging level and handlers from the root logger. * * @param resourceBundleName * the name of the resource bundle used to localize log messages. * @return a new instance of anonymous logger. * @throws MissingResourceException * if the specified resource bundle can not be loaded. */ public static Logger getAnonymousLogger(String resourceBundleName) { Logger result = new Logger(null, resourceBundleName); result.isNamed = false; LogManager logManager = LogManager.getLogManager(); logManager.setParent(result, logManager.getLogger("")); return result; }
/** * Gets an anonymous logger to use internally in a thread. Anonymous loggers * are not registered in the log manager's namespace. No security checks * will be performed when updating an anonymous logger's control settings. * <p> * The anonymous loggers' parent is set to be the root logger. This way it * inherits default logging level and handlers from the root logger. * * @param resourceBundleName * the name of the resource bundle used to localize log messages. * @return a new instance of anonymous logger. * @throws MissingResourceException * if the specified resource bundle can not be loaded. */ public static Logger getAnonymousLogger(String resourceBundleName) { Logger result = new Logger(null, resourceBundleName); result.isNamed = false; LogManager logManager = LogManager.getLogManager(); logManager.setParent(result, logManager.getLogger("")); return result; }
/** * Gets an anonymous logger to use internally in a thread. Anonymous loggers * are not registered in the log manager's namespace. No security checks * will be performed when updating an anonymous logger's control settings. * <p> * The anonymous loggers' parent is set to be the root logger. This way it * inherits default logging level and handlers from the root logger. * * @param resourceBundleName * the name of the resource bundle used to localize log messages. * @return a new instance of anonymous logger. * @throws MissingResourceException * if the specified resource bundle can not be loaded. */ public static Logger getAnonymousLogger(String resourceBundleName) { Logger result = new Logger(null, resourceBundleName); result.isNamed = false; LogManager logManager = LogManager.getLogManager(); logManager.setParent(result, logManager.getLogger("")); return result; }
/** * Gets an anonymous logger to use internally in a thread. Anonymous loggers * are not registered in the log manager's namespace. No security checks * will be performed when updating an anonymous logger's control settings. * <p> * The anonymous loggers' parent is set to be the root logger. This way it * inherits default logging level and handlers from the root logger. * * @param resourceBundleName * the name of the resource bundle used to localize log messages. * @return a new instance of anonymous logger. * @throws MissingResourceException * if the specified resource bundle can not be loaded. */ public static Logger getAnonymousLogger(String resourceBundleName) { Logger result = new Logger(null, resourceBundleName); result.isNamed = false; LogManager logManager = LogManager.getLogManager(); logManager.setParent(result, logManager.getLogger("")); return result; }
/** * Gets an anonymous logger to use internally in a thread. Anonymous loggers * are not registered in the log manager's namespace. No security checks * will be performed when updating an anonymous logger's control settings. * <p> * The anonymous loggers' parent is set to be the root logger. This way it * inherits default logging level and handlers from the root logger. * * @param resourceBundleName * the name of the resource bundle used to localize log messages. * @return a new instance of anonymous logger. * @throws MissingResourceException * if the specified resource bundle can not be loaded. */ public static Logger getAnonymousLogger(String resourceBundleName) { Logger result = new Logger(null, resourceBundleName); result.isNamed = false; LogManager logManager = LogManager.getLogManager(); logManager.setParent(result, logManager.getLogger("")); return result; }