Piglet
11-22-2007, 09:24 AM
With certain types of logging it is very useful to be able to see the log output as it builds up.
With FileLog::OpenLog in ut2004, when you opened a file that already existed, writes to the file would be appended to the current content. This meant that you could close the log after each write so that the file unlocked and you could read it. In UT3 FileWriter::OpenFile (or UT3 FileLog) on existing file flushes all content.
It would be very useful to have the option of opening for output or opening for append as a parameter to OpenFile().
Unless this is done the only two options I can find with FileWriter are to open up a new log file for each line output - which isn't really a good option, or to keep the file locked - so you can't read the output....which isn't any better!
With FileLog::OpenLog in ut2004, when you opened a file that already existed, writes to the file would be appended to the current content. This meant that you could close the log after each write so that the file unlocked and you could read it. In UT3 FileWriter::OpenFile (or UT3 FileLog) on existing file flushes all content.
It would be very useful to have the option of opening for output or opening for append as a parameter to OpenFile().
Unless this is done the only two options I can find with FileWriter are to open up a new log file for each line output - which isn't really a good option, or to keep the file locked - so you can't read the output....which isn't any better!