# TestingUtils.ConfigureDefaultLoggingBuilder(ILoggingBuilder, string)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.utils.testingutils/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.utils.testingutils/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/Utils/TestingUtils.cs#L26-L27)

```csharp
public static void ConfigureDefaultLoggingBuilder(ILoggingBuilder builder, string filePath)
```

Configure `builder` with a [FileLoggerProvider](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.fileloggerprovider/) which logs to `filePath` by default;

### Parameters

- `builder` (`ILoggingBuilder`): The builder.
- `filePath` (`string`): The file path.
