# LoggingDestination

Represents a logging destination for AgentCore Runtime.

Use the static factory methods to create instances:
- `LoggingDestination.cloudWatchLogs(logGroup)` - Send logs to CloudWatch Logs
- `LoggingDestination.s3(bucket)` - Send logs to S3
- `LoggingDestination.firehose(stream)` - Send logs to Kinesis Data Firehose

- Source: [`aws-bedrockagentcore/lib/runtime/observability.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-bedrockagentcore/lib/runtime/observability.ts#L98)
- Type last changed: v2.255.0 · 19 May 2026

## Example

```ts
const repository = new ecr.Repository(this, 'TestRepository', {
  repositoryName: 'test-agent-runtime',
});

const agentRuntimeArtifact = agentcore.AgentRuntimeArtifact.fromEcrRepository(repository, 'v1.0.0');

// Use a /aws/vendedlogs/ log group for same-account delivery without explicit resource policy
const logGroup = new logs.LogGroup(this, 'RuntimeLogGroup', {
  logGroupName: '/aws/vendedlogs/bedrock-agentcore/my-runtime',
});

new agentcore.Runtime(this, 'test-runtime', {
  runtimeName: 'test_runtime',
  agentRuntimeArtifact: agentRuntimeArtifact,
  tracingEnabled: true,
  loggingConfigs: [
    {
      logType: agentcore.LogType.APPLICATION_LOGS,
      destination: agentcore.LoggingDestination.cloudWatchLogs(logGroup),
    },
  ],
  manageDeliveryResourcePolicy: false,
});
```

## Initializer

```ts
new LoggingDestination()
```

## Methods

- `cloudWatchLogs(logGroup: ILogGroup): LoggingDestination // chainable` (static) — Create a logging destination that sends logs to a CloudWatch Log Group.

  **Parameters**

  - `logGroup` — The CloudWatch Log Group to send logs to.

- `firehose(stream: IDeliveryStream): LoggingDestination // chainable` (static) — Create a logging destination that sends logs to a Kinesis Data Firehose delivery stream.

  **Parameters**

  - `stream` — The Firehose delivery stream to send logs to.

- `s3(bucket: IBucket): LoggingDestination // chainable` (static) — Create a logging destination that sends logs to an S3 bucket.

  **Parameters**

  - `bucket` — The S3 bucket to send logs to.
