Now uses log4cpp for output instead of printf. Log4cpp is configured via log4cpp.properties.