## IDiagnosticsBuilder.AddLogging method

Enables logs collection.

```csharp
public IDiagnosticsBuilder AddLogging(ILogger logger)
```

| Parameter | Type | Description |
| --- | --- | --- |
| logger | ILogger | Implementation of interface ILogger which will be used for logging. |

### Return Value

The [`IDiagnosticsBuilder`](../) so that additional calls can be chained.

### See Also

* interface [IDiagnosticsBuilder](../)
* namespace [Aspose.Html.Diagnostics](../../../aspose.html.diagnostics/)
* assembly [Aspose.HTML](../../../)
