#21 Opening the file in FileAppender to append to the end

open
nobody
5
2010-02-04
2010-02-04
Johan Karlsson
No

This comes from a request in the forums
"[Avatar]
2010-02-01 14:38:56 CET
Hi,

I was testing FileAppender a bit and noticed that the output stream isn't opened to the end of the file. It would be nice if FileAppender.openOutputStream() could be modified to call:

outputStream = fileConnection.openOutputStream(fileConnection.fileSize());

instead. This way I could keep on monitoring the same log file, and from the same position, even if I restart the MIDlet."

Discussion

  • Johan Karlsson
    Johan Karlsson
    2010-02-04

    • labels: --> microlog-logger-midp-file