# InMemoryLoggerProvider.CreateLogger(string)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/Logging/InMemoryLoggerProvider.cs#L274)

```csharp
public ILogger CreateLogger(string categoryName)
```

Creates a new `Microsoft.Extensions.Logging.ILogger` instance.

### Parameters

- `categoryName` (`string`): The category name for messages produced by the logger.

### Returns

The instance of `Microsoft.Extensions.Logging.ILogger` that was created.
