예제 #1
0
 /**
  * Constructs a {@code Handler} object with a default error manager instance
  * {@code ErrorManager}, the default encoding, and the default logging
  * level {@code Level.ALL}. It has no filter and no formatter.
  */
 protected Handler()
 {
     this.errorMan = new ErrorManager();
     this.level = DEFAULT_LEVEL;
     this.encoding = null;
     this.filter = null;
     this.formatter = null;
     this.prefix = this.getClass().getName();
 }
예제 #2
0
 /**
  * Sets the error manager for this handler.
  *
  * @param em
  *            the error manager to set.
  * @throws NullPointerException
  *             if {@code em} is {@code null}.
  * @throws SecurityException
  *             if a security manager determines that the caller does not
  *             have the required permission.
  */
 public void setErrorManager(ErrorManager em)
 {
     LogManager.getLogManager().checkAccess();
     if (null == em) {
         throw new java.lang.NullPointerException();
     }
     this.errorMan = em;
 }