Hi all! I'm using this code to configure Log4J in my servlet. But I don't know whether it is a good way or not. Please give me your idea. --------------------- java.util.Properties props = new java.util.Properties(); // log4j.properties is in the same package with this servlet java.io.InputStream in = this.getClass().getResourceAsStream("log4j.properties"); if ( in != null ) { try{ props.load(in); org.apache.log4j.PropertyConfigurator.configure(props); in.close(); } catch (java.io.IOException e){ } ------------------------ Regards, Thai --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]