# LogEntry Methods

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

## Deconstruct(DateTimeOffset, LogLevel, string, EventId, string, Exception?) {#deconstruct-out-system-datetimeoffset-out-microsoft-extensions-logging-loglevel-af1922df}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.logentry/methods/deconstruct-out-system-datetimeoffset-out-microsoft-extensions-logging-loglevel-af1922df/)

```csharp
public void Deconstruct(out DateTimeOffset Timestamp, out LogLevel LogLevel, out string Category, out EventId EventId, out string Message, out Exception? Exception)
```

### Parameters

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

## Equals(LogEntry) {#equals-orleans-testinghost-logging-logentry-bcdf2972}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.logentry/methods/equals-orleans-testinghost-logging-logentry-bcdf2972/)

```csharp
public bool Equals(LogEntry other)
```

Indicates whether the current object is equal to another object of the same type.

### Parameters

- `other` (`LogEntry`): An object to compare with this object.

### Returns

`true` if the current object is equal to the `other` parameter; otherwise, `false`.

## Equals(object) {#equals-object-c540e618}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.logentry/methods/equals-object-c540e618/)

```csharp
public override bool Equals(object obj)
```

Indicates whether this instance and a specified object are equal.

### Parameters

- `obj` (`object`): The object to compare with the current instance.

### Returns

`true` if `obj` and this instance are the same type and represent the same value; otherwise, `false`.

## GetHashCode {#gethashcode-c46e8555}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.logentry/methods/gethashcode-c46e8555/)

```csharp
public override int GetHashCode()
```

Returns the hash code for this instance.

### Returns

A 32-bit signed integer that is the hash code for this instance.

## ToString {#tostring-b6fcd6ae}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.logentry/methods/tostring-b6fcd6ae/)

```csharp
public override string ToString()
```

Returns the fully qualified type name of this instance.

### Returns

The fully qualified type name.

## operator ==(LogEntry, LogEntry) {#op-equality-orleans-testinghost-logging-logentry-orleans-testinghost-logging-log-cafd40e2}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.logentry/methods/op-equality-orleans-testinghost-logging-logentry-orleans-testinghost-logging-log-cafd40e2/)

```csharp
public static bool operator ==(LogEntry left, LogEntry right)
```

### Parameters

- `left` (`LogEntry`)
- `right` (`LogEntry`)

## operator !=(LogEntry, LogEntry) {#op-inequality-orleans-testinghost-logging-logentry-orleans-testinghost-logging-l-be759c3e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.logentry/methods/op-inequality-orleans-testinghost-logging-logentry-orleans-testinghost-logging-l-be759c3e/)

```csharp
public static bool operator !=(LogEntry left, LogEntry right)
```

### Parameters

- `left` (`LogEntry`)
- `right` (`LogEntry`)
