# LogEntry Constructors

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

## LogEntry(DateTimeOffset, LogLevel, string, EventId, string, Exception?) {#constructor-system-datetimeoffset-microsoft-extensions-logging-loglevel-string-m-5056786b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.logentry/constructors/constructor-system-datetimeoffset-microsoft-extensions-logging-loglevel-string-m-5056786b/)

```csharp
public LogEntry(DateTimeOffset Timestamp, LogLevel LogLevel, string Category, EventId EventId, string Message, Exception? Exception)
```

Represents a single log entry with its associated metadata.

### Parameters

- `Timestamp` (`DateTimeOffset`)
- `LogLevel` (`LogLevel`)
- `Category` (`string`)
- `EventId` (`EventId`)
- `Message` (`string`)
- `Exception` (`Exception?`)
