# Use advanced logging
Learn advanced logging techniques available in the redaction API
You can implement [ILogger](https://reference.groupdocs.com/net/redaction/groupdocs.redaction.options/ilogger) interface from GroupDocs.Redaction.Options namespace. This interface requires to implement three methods:
**C#**
```csharp
using GroupDocs.Redaction.Options;
///
/// This is an example of ILogger implementation, tracking count of error messages.
///
public class CustomLogger : ILogger
{
public List Errors { get; private set; }
public List Traces { get; private set; }
public List Warnings { get; private set; }
public bool HasErrors { get { return Errors.Count > 0; } }
public CustomLogger()
{
Errors = new List();
Traces = new List();
Warnings = new List();
}
public void Error(string message)
{
Errors.Add(message);
}
public void Trace(string message)
{
Traces.Add(message);
}
public void Warning(string message)
{
Warnings.Add(message);
}
}
```
Once implemented, you can use it to track error log records:
**C#**
```csharp
using (Stream stream = File.Open(@"sample.docx", FileMode.Open, FileAccess.ReadWrite))
{
var logger = new CustomLogger();
using (Redactor redactor = new Redactor(stream, new LoadOptions(), new RedactorSettings(logger)))
{
// Here we can use document instance to make redactions
redactor.Apply(new DeleteAnnotationRedaction());
if (!logger.HasErrors)
{
redactor.Save();
}
}
}
```
## More resources
### GitHub examples
You may easily run the code above and see the feature in action in our GitHub examples:
* [GroupDocs.Redaction for .NET examples](https://github.com/groupdocs-redaction/GroupDocs.Redaction-for-.NET)
* [GroupDocs.Redaction for Java examples](https://github.com/groupdocs-redaction/GroupDocs.Redaction-for-Java)
### Free online document redaction App
Along with full featured .NET library we provide simple, but powerful free Apps.
You are welcome to perform redactions for various document formats like PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, Emails and more with our free online [Free Online Document Redaction App](https://products.groupdocs.app/redaction).