bug 1138: Implement log parameter for output_assurances*() and use it for