OSYSTEM: Basic logger
|Reported by:||lordhoto||Owned by:||lordhoto|
This patch is a proof-of-concept implementation of a basic text only logger.
The "main" addition is the class Log (placed in backends/log/log.[cpp,h]). It has some basic features which can be used for different OSystems, i.e. it optionally outputs time information based on OSystem::getMillies. Apart all it can do is output simple start/end text and it automatically starts with the ScummVM version strings.
I also hooked it up with the SDL backend as an example. Currenlty the output file is always "~/scummvm-log" for testing reasons, thus it should only work fine on UNIX-like systems.
- Discuss what exact functionallity we need, i.e. is the simple text output enough? - Document the class and its methods/members. - Discuss where/how we want to store logs on our SDL targeted platforms (and implement it) - Currently OSystem_SDL::logMessage will always call the logging method so that the logger will output the time. This is not really nice when debugN is used. We would need to find some nice way of assuring that the time information is only printed *after* a new line on the next call, to have some nice looking output.
Ticket imported from: #3115757. Ticket imported from: patches/1365.