logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James A. N. Stauffer" <stauffer.ja...@gmail.com>
Subject Re: Moving log statements from file to database.
Date Tue, 03 Jun 2008 20:07:15 GMT
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
<Sushil.Duseja@fiserv.co.in> 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


Mime
View raw message