title: how do I set the loggers in netbeans to print exceptions information to files?
body: <p>I'm using NetBeans IDE to develop a project for my senior year. The project has to be handed as jar.</p>
  
  <p>The project works fine within NetBeans ( when im using "run project").  So , I created an executeable jar file to it . Unfortunately , the jar file doesnt work , and probably throws execeptions that i cant see .  My goal is to print those exceptions to a file , so I could see whats happing on that jar , and to debug it .</p>
  
  <p>I know that netbeans is using deafult logging mode . A code like this one genereted when you try to catch exceptions :</p>
  
  <pre><code>    try {
          manipulate.Adapt.Adaption(tclass);
      } catch (Exception ex) {
          Logger.getLogger(PepperNewAnalysis.class.getName()).log(Level.SEVERE, null, ex);
      } 
  </code></pre>
  
  <p>I'm not fimilair with java logging methodlogy. I read some information in <a href="http://bits.netbeans.org/dev/javadoc/org-openide-util/org/openide/util/doc-files/logging.html" rel="nofollow">here</a> , it was good , but not enough to my needs.</p>
  
  <p>So , my question is - how do I tied up those logger - like the one up there for PepperNewAnalysis to a file ? </p>
  
  <p>Is it possible to inform the global logger that all logging should be outputed into a file?</p>
  
  <p>Again , all I want is to print some debug info like the trace of the exception into a file , for every exception that i can check in my project.</p>
  
  <p>please help me , im running out of time.</p>
  
  <p>thanks !</p>