I forgot to attach my sample-Source :o) public class WQStart { static Logger log = Logger.getLogger("info.jankus.webquicky");
/** * Die <code>init</code>-Methode setzt den Logger und leiten alle * Ausgaben in Dateien um. */ private void init() { // Log4J konfigurieren PropertyConfigurator.configure("log4j.properties"); // Umleitung der Ausgabeströme in Dateien try { System.setErr(new PrintStream(new FileOutputStream("error.log", true))); System.setOut(new PrintStream(new FileOutputStream("message.log", true))); } catch (IOException ioe) { log.error("Umleitung in Datei error.log / message.log nicht möglich",ioe); System.exit(1); } } /** * Die <code>main</code>-Methode */ public static void main(String[] args) { WQStart webQuicky = new WQStart(); try { webQuicky.init(); // // lines deleted... // } catch (Throwable e) { log.error("Folgender Fehler ist aufgetreten",e); e.printStackTrace(); System.exit(1); } log.info("Programm erfolgreich beendet"); System.exit(0); } } -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>