# TestingUtils.CreateDefaultLoggerFactory(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#L57)

```csharp
public static ILoggerFactory CreateDefaultLoggerFactory(string filePath)
```

Create the default logger factory, which would configure logger factory with a [FileLoggerProvider](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.fileloggerprovider/) that writes logs to `filePath` and console. by default;

### Parameters

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

### Returns

ILoggerFactory.
