Add a mechanism to log private data from exceptions and use case for bind_variables.