1、adding a META-INF/services for java.util.logging.Handler 2、#-org.netbeans.core.NbErrorManager my.company.MyErrorHandler