Hi,
I'm using log4cxx v0.9.7 (for historical reasons)
My question is whether it is possible (in this or any other version) to work
with memory mapped files.
Objective is to have the application log both to a rolling i/o-buffered file on
disk for the long-term log and an unbuffered memory mapped
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
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
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?
Yeah. I was thinking that one would toss the file onto something
RAMish. But you're right