logging is disabled by default. to enable it set a custom logger.