logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Steele" <pste...@maxiscale.com>
Subject RE: File system full causes log4cxx to crash
Date Tue, 23 Sep 2008 12:16:05 GMT
With 0.9.7 your app threw and exception and aborted when the log volume
filled up. Putting a try/catch around the log call prevented the crash.
I put the same try/catch in my wrapper functions and that worked as
well, so that's all there was to it. I like simple solutions.

Thanks for pointing me in the right direction.

-----Original Message-----
From: Peter Steele [mailto:psteele@maxiscale.com] 
Sent: Monday, September 22, 2008 5:46 PM
To: Log4CXX User
Subject: RE: File system full causes log4cxx to crash

Okay, thanks, I'll give it a try.

-----Original Message-----
From: Jacob L. Anawalt [mailto:janawalt@geckosoftware.com] 
Sent: Monday, September 22, 2008 4:24 PM
To: Log4CXX User
Subject: Re: File system full causes log4cxx to crash

On 2008-09-22 17:03, Peter Steele wrote:
> We're using 0.9.7 in fact, under FreeBSD. Our case is bit more

> Maybe we need to catch this IOException in our wrapper functions? 

The IOException was in the 0.10.x code. I didn't see any exception
around the writing to files in 0.9.7. As near as I could tell the
iostream library was handing the full filesytem error by not writing any
more but the rest of the program and logging kept working.

Perhaps it is something with the C wrappers. You could try my test
program with a small file based filesystem loop mounted at /mnt

--
Jacob Anawalt
Gecko Software, Inc.
janawalt@geckosoftware.com
435-752-8026

Mime
View raw message