# LogSubscriber Methods

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [LogSubscriber](/reference/api/csharp/aspire.hosting/logsubscriber.md)
- Kind: `Methods`
- Members: `7`

Represents a log subscriber for a resource.

## Deconstruct(string, bool)

- Name: `Deconstruct(string, bool)`

```csharp
public struct LogSubscriber
{
    public void Deconstruct(
        out string Name,
        out bool AnySubscribers)
    {
        // ...
    }
}
```

## Parameters

- `Name` (`string`)
- `AnySubscribers` (`bool`)

## Equals(object)

- Name: `Equals(object)`
- Modifiers: `override`
- Returns: `bool`

Indicates whether this instance and a specified object are equal.

```csharp
public struct LogSubscriber
{
    public override bool Equals(
        object obj)
    {
        // ...
    }
}
```

## Parameters

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

## Returns

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

## Equals(LogSubscriber)

- Name: `Equals(LogSubscriber)`
- Returns: `bool`

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

```csharp
public struct LogSubscriber
{
    public bool Equals(
        LogSubscriber other)
    {
        // ...
    }
}
```

## Parameters

- `other` ([LogSubscriber](/reference/api/csharp/aspire.hosting/logsubscriber.md))
  An object to compare with this object.

## Returns

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

## GetHashCode

- Name: `GetHashCode`
- Modifiers: `override`
- Returns: `int`

Returns the hash code for this instance.

```csharp
public struct LogSubscriber
{
    public override int GetHashCode()
    {
        // ...
    }
}
```

## Returns

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

## op_Equality(LogSubscriber, LogSubscriber)

- Name: `op_Equality(LogSubscriber, LogSubscriber)`
- Modifiers: `static`
- Returns: `bool`

```csharp
public struct LogSubscriber
{
    public static bool operator ==(
        LogSubscriber left,
        LogSubscriber right)
    {
        // ...
    }
}
```

## Parameters

- `left` ([LogSubscriber](/reference/api/csharp/aspire.hosting/logsubscriber.md))
- `right` ([LogSubscriber](/reference/api/csharp/aspire.hosting/logsubscriber.md))

## op_Inequality(LogSubscriber, LogSubscriber)

- Name: `op_Inequality(LogSubscriber, LogSubscriber)`
- Modifiers: `static`
- Returns: `bool`

```csharp
public struct LogSubscriber
{
    public static bool operator !=(
        LogSubscriber left,
        LogSubscriber right)
    {
        // ...
    }
}
```

## Parameters

- `left` ([LogSubscriber](/reference/api/csharp/aspire.hosting/logsubscriber.md))
- `right` ([LogSubscriber](/reference/api/csharp/aspire.hosting/logsubscriber.md))

## ToString

- Name: `ToString`
- Modifiers: `override`
- Returns: `string`

Returns the fully qualified type name of this instance.

```csharp
public struct LogSubscriber
{
    public override string ToString()
    {
        // ...
    }
}
```

## Returns

`string` -- The fully qualified type name.
