added support for log4c logging