# LogSubscriber

- Kind: `struct`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ResourceLoggerService.cs)
- Implements: `IEquatable<LogSubscriber>`

Represents a log subscriber for a resource.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed readonly struct LogSubscriber
    : System.IEquatable<Aspire.Hosting.ApplicationModel.LogSubscriber>
{
    // ...
}
```

## Constructors

- [LogSubscriber(string, bool)](/reference/api/csharp/aspire.hosting/logsubscriber/constructors.md#constructor-string-bool) -- Represents a log subscriber for a resource.

## Properties

- [AnySubscribers](/reference/api/csharp/aspire.hosting/logsubscriber/properties.md#anysubscribers) : `bool` `get; init` -- Determines if there are any subscribers.
- [Name](/reference/api/csharp/aspire.hosting/logsubscriber/properties.md#name) : `string` `get; init` -- The the resource name.

## Methods

- [Deconstruct(string, bool)](/reference/api/csharp/aspire.hosting/logsubscriber/methods.md#deconstruct-string-bool)
- [Equals(object)](/reference/api/csharp/aspire.hosting/logsubscriber/methods.md#equals-object) : `bool` -- Indicates whether this instance and a specified object are equal.
- [Equals(LogSubscriber)](/reference/api/csharp/aspire.hosting/logsubscriber/methods.md#equals-logsubscriber) : `bool` -- Indicates whether the current object is equal to another object of the same type.
- [GetHashCode](/reference/api/csharp/aspire.hosting/logsubscriber/methods.md#gethashcode) : `int` -- Returns the hash code for this instance.
- [op_Equality(LogSubscriber, LogSubscriber)](/reference/api/csharp/aspire.hosting/logsubscriber/methods.md#op-equality-logsubscriber-logsubscriber) : `bool` `static`
- [op_Inequality(LogSubscriber, LogSubscriber)](/reference/api/csharp/aspire.hosting/logsubscriber/methods.md#op-inequality-logsubscriber-logsubscriber) : `bool` `static`
- [ToString](/reference/api/csharp/aspire.hosting/logsubscriber/methods.md#tostring) : `string` -- Returns the fully qualified type name of this instance.
