Hi , I am doing the remote logging and have the following server property file. /*************************************************************************** **********/ log4j.category.com.intiqua.integral.logging1=DEBUG,A1 log4j.category.com.intiqua.integral.logging2=DEBUG,A2 log4j.category.org.apache.log4j.net.SocketNode=DEBUG
log4j.appender.A1=org.apache.log4j.FileAppender log4j.appender.A1.file=D:\\IntegralDevelopment\\properties\\clientserver\\se rverlog100.txt log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} %p %M %t %c - %m%n log4j.appender.A2=org.apache.log4j.FileAppender log4j.appender.A2.file=D:\\IntegralDevelopment\\properties\\clientserver\\se rverlog200.txt log4j.appender.A2.layout=org.apache.log4j.PatternLayout log4j.appender.A2.layout.ConversionPattern=%d{HH:mm:ss,SSS} %p %M %t %c - %m%n /*************************************************************************** **********/ I am facing two problems 1)Error is coming log4j:WARN No appenders could be found for logger (org.apache.log4j.net.SocketNode). log4j:WARN Please initialize the log4j system properly. 2)log mesages are not written to the logfiles mentioned. Following is the code for remote logging: /*************************************************************************** **********/ public static void main(String[] arg) { try{ System.out.println("Server Running"); ServerSocket serverSocket = new ServerSocket(LOGGING_SERVER_PORT); PropertyConfigurator.configure(SystemInfo.getRemoteLoggingFilePath()+SystemI nfo.getFileSeparator()+SystemInfo.getRemoteLoggingFileName()); while(true) { System.out.println("Waiting to accept a new client."); Socket socket = serverSocket.accept(); System.out.println("Connected to client at " + socket.getInetAddress()); SocketNode socketNode = new SocketNode(socket, LogManager.getLoggerRepository()); Thread threadObj = new Thread(socketNode); threadObj.start(); threadObj.join(); } }catch(Exception e) { e.printStackTrace(); } }//end of main method /*************************************************************************** **********/ I will appretiate a quick response.Thanks in advance. Deepesh ____________________________________________________ INTIQUA International Intelligent Solutions, Quality Execution ____________________________________________________ Note: The information and data contained in this message (and attachments) may be privileged and confidential and protected from disclosure to any party or parties apart from the intended recipient. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer.