add sanitize option to log module