1

OK, got log4cplus to log stuff to a file. Now I want it to simply append when the program re-starts instead of overwrite.

I tried this: log4cplus::SharedAppenderPtr myAppender(new log4cplus::FileAppender "myLogFile.log",std::ios_base::ate));

but it still truncated and overwrote.

I don't want to use the Rolling or Daily FileAppenders (yet at least).

Thanks, -g

OuttaCyTE
  • 21
  • 2

1 Answers1

0

Try to pass down std::ios::app instead. That is what the code checks for.

wilx
  • 17,697
  • 6
  • 59
  • 114