Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 66976 invoked from network); 3 Jun 2008 20:07:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jun 2008 20:07:54 -0000 Received: (qmail 25519 invoked by uid 500); 3 Jun 2008 20:07:55 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 25311 invoked by uid 500); 3 Jun 2008 20:07:54 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 25300 invoked by uid 99); 3 Jun 2008 20:07:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 13:07:54 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of stauffer.james@gmail.com designates 74.125.46.153 as permitted sender) Received: from [74.125.46.153] (HELO yw-out-1718.google.com) (74.125.46.153) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 20:07:03 +0000 Received: by yw-out-1718.google.com with SMTP id 5so981089ywr.40 for ; Tue, 03 Jun 2008 13:07:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=BnOUN8x0eU5LIbWR3Mh3a+KZJ4BBStB59hMF/5OrlMc=; b=c5s0WdB13jiWlpG0YXiFEFJSY/JSo9YO1QeyRGUKu9BtRw3xbWcQ2VkA7F7Lez5Z5dj2Oa0aGfE0gh/Q0exe/3OZijl5gy/93pPQdEV2Lb61oG8teIrsRXPHz8wvyoYPATmOG7fvr1DaSORy4vN+DgXxUOXx2wdYvZeygku67f0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fpsMAwXQlqLQAqOmk0u7DBZpTR1EQnA5sjo5rUP+t6PxVwmre6Y6J1YcmeAAs3Zd8VNtVX46aLXH0dNqsWswf+DUQfKEsioVs2SnS+xeHNOXSklQRCZlvb6ezWfsmLfZw5k3QI8PdOwSbZGk75WFWn86PSeaWG41XCOWl8HVJC4= Received: by 10.150.137.9 with SMTP id k9mr353748ybd.205.1212523635293; Tue, 03 Jun 2008 13:07:15 -0700 (PDT) Received: by 10.150.204.16 with HTTP; Tue, 3 Jun 2008 13:07:15 -0700 (PDT) Message-ID: Date: Tue, 3 Jun 2008 15:07:15 -0500 From: "James A. N. Stauffer" To: "Log4J Users List" Subject: Re: Moving log statements from file to database. In-Reply-To: <8EBF668F7ACF8344BAC93D29CE2FBC1303330CB3@FGSMAIL.fiserv.co.in> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8EBF668F7ACF8344BAC93D29CE2FBC1303330CB3@FGSMAIL.fiserv.co.in> X-Virus-Checked: Checked by ClamAV on apache.org Write the logs in XML format (to make it easier to parse) and then write a program to parse and write to the DB. On Mon, May 12, 2008 at 12:56 AM, Duseja, Sushil wrote: > Hello, > > > > I have written a custom appender using Axis and log4j. This appender > calls my web service. Following is what happens:- > > > > * If the service is up, it writes the logging statements to one of > the tables in the database. > * If the service is down, it writes the logging statements to a > file on the file system. (This is done so that the log statements are > not missed.) > > > > Now, when the service comes up again, the log statements in the file > (which were meant to go into the database table originally) should be > written back to the database. > > > > Can anyone please let me know as to how to go about it? > > > > Thanks. > > > > Regards, > > Sushil Duseja > > > > > > -- James A. N. Stauffer http://www.geocities.com/stauffer_james/ Are you good? Take the test at http://www.livingwaters.com/good/ --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org