java - how do I set the loggers in netbeans to print exceptions information to files? -


i'm using netbeans ide develop project senior year. project has handed jar.

the project works fine within netbeans ( when im using "run project"). , created executeable jar file . unfortunately , jar file doesnt work , , throws execeptions cant see . goal print exceptions file , see whats happing on jar , , debug .

i know netbeans using deafult logging mode . code 1 genereted when try catch exceptions :

    try {         manipulate.adapt.adaption(tclass);     } catch (exception ex) {         logger.getlogger(peppernewanalysis.class.getname()).log(level.severe, null, ex);     }  

i'm not fimilair java logging methodlogy. read information in here , , not enough needs.

so , question - how tied logger - 1 there peppernewanalysis file ?

is possible inform global logger logging should outputed file?

again , want print debug info trace of exception file , every exception can check in project.

please me , im running out of time.

thanks !

netbeans uses java.util.logging api logging. should read that, if want use same. otherwise, commonly used logger in log4j, , wrappers slf4j, logback etc.

imo, go java.util.logging. here can find java util logging guide.


Comments

Popular posts from this blog

Javascript line number mapping -

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -