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