The following example demonstrates how to implement detailed logging for redaction process.
publicclassRedactionDump:IRedactionCallback{publicRedactionDump(){}publicboolAcceptRedaction(RedactionDescriptiondescription){Console.Write("{0} redaction, {1} action, item {2}. ",description.RedactionType,description.ActionType,description.OriginalText);if(description.Replacement!=null){Console.Write("Text {0} is replaced with {1}. ",description.Replacement.OriginalText,description.Replacement.Replacement);}Console.WriteLine();// you can return "false" here to prevent particular change during redaction processreturntrue;}}...// Assign an instance before using RedactorRedactor.RedactionCallback=newRedactionDump();