fixed: bunch of possible segfaults e.g. using sprintf instead snprintf
or not catching allocation errors
added: log format specifier in config file xml
added: sighup handler for logrotate support