# LogSubscriber Constructors

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

Represents a log subscriber for a resource.

## LogSubscriber(string, bool)

- Name: `Constructor(string, bool)`

Represents a log subscriber for a resource.

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

## Parameters

- `Name` (`string`)
  The the resource name.
- `AnySubscribers` (`bool`)
  Determines if there are any subscribers.
