# WebhookLog

`class` in `seedcord` · v0.12.0

<https://docs.seedcord.org/packages/seedcord/0.12.0/classes/webhook-log>

Abstract webhook logging handler for subscriber events.

Extends Subscriber to provide webhook-based logging capabilities. Implementations must define the webhook client to send messages to by implementing the webhook property.

```ts
abstract class WebhookLog<
    KeyOfSubscribers extends SubscriptionKey
> extends Subscriber<KeyOfSubscribers>
```

## Constructors

### constructor

```ts
WebhookLog(
    data: AllSubscriptions[KeyOfSubscribers],
    core: Core
)
```

Constructs a new instance of the `WebhookLog` class

## Properties

### core

```ts
protected readonly core: Core
```

### data

```ts
protected readonly data: AllSubscriptions[KeyOfSubscribers]
```

### logger

```ts
protected readonly logger: Logger
```

### webhook

```ts
public abstract webhook: WebhookClient
```

The Discord webhook client for sending log messages

## Methods

### execute

```ts
abstract async execute(): Promise<void>
```

Executes the subscriber handler logic.
