# FileLoggingOutput Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.fileloggingoutput/)

## Dispose {#dispose-660935c0}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.fileloggingoutput/methods/dispose-660935c0/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/Logging/FileLogger.cs#L111-L112)

```csharp
public void Dispose()
```

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

## Log(LogLevel, EventId, TState, Exception, Func&lt;TState, Exception, string&gt;, string) {#log-1-microsoft-extensions-logging-loglevel-microsoft-extensions-logging-eventid-36f9122a}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.fileloggingoutput/methods/log-1-microsoft-extensions-logging-loglevel-microsoft-extensions-logging-eventid-36f9122a/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/Logging/FileLogger.cs#L69-L82)

```csharp
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter, string category)
```

Logs a message.

### Parameters

- `logLevel` (`LogLevel`): The log level.
- `eventId` (`EventId`): The event identifier.
- `state` (`TState`): The state.
- `exception` (`Exception`): The exception.
- `formatter` (`Func<TState, Exception, string>`): The formatter.
- `category` (`string`): The category.
