This reverts commit 99dc7641a9.
This causes bug #15392, a build failure on Dreamcast and changes too
much the semantics.
A better approach will need to be found, especially for streaming files
like logs.
A temporary file is used to write the data and the file is renamed when
it is closed.
The string containing the destination path is a stored as a pointer to
limit the size of the object (which is already doubled).
This is the logger I posted at our patch tracker. Item #3115757
"OSYSTEM: Basic logger". It includes the changes proposed by Max.
It is currently not hooked into any backend, since we still need to decide
where to log files, whether to have multiple log files etc.
svn-id: r54451