Thanks for your prompt answer, Rhys. I don't understand all implications of it yet (I'm new to log4cxx), but i will work through it.
> Curiosity, turning off the buffering on FileAppender isn't close enough to > what you want? Well, maybe. But won't turning off buffering severely decrease performance because of higher i/o activity? It is a real-time application with high expected log throughput. But anyway, your question is legitimate, i should probably profile-test this. Lars R. -----Original Message----- From: Rhys Ulerich [mailto:rhys.uler...@gmail.com] Sent: mercredi 15 janvier 2014 15:55 To: Log4CXX User Subject: Re: Logging to memory mapped files > So is there any possibility to have an log4cxx appender logging to a > memory mapped file? (primary target is Linux) > > Does anybody have had experience with implementing that? How would you > do it? No experience, no. A rough hack would be to call WriterAppender::setWriter on a ConsoleAppender instance passing a custom Writer implementation that groks a mmap-ed file. I'm unconvinced this would work, however, given the behavior of the private ConsoleAppender::target member mentioned in ConsoleAppender::setTarget. A better version would be, I think, to create a new WriterAppender subclass doing what you want. Curiosity, turning off the buffering on FileAppender isn't close enough to what you want? - Rhys