# LogtoResource.withDeprecationTracing

- Module: [CommunityToolkit.Aspire.Hosting.Logto](/reference/api/typescript/communitytoolkit.aspire.hosting.logto.md)
- Defined on: [LogtoResource](/reference/api/typescript/communitytoolkit.aspire.hosting.logto/logtoresource.md)
- Version: `13.5.0`
- Kind: `method`

Enables Node.js deprecation tracing for the Logto by setting the NODE_OPTIONS environment variable to '--trace-deprecation'. This allows stack traces to be printed for deprecated API usage.

## Definition

```typescript
interface LogtoResource {
  // ... omitted for brevity
  withDeprecationTracing(): LogtoResource;
}
```

## Signature

```typescript
withDeprecationTracing(): LogtoResource
```

## Returns

[LogtoResource](/reference/api/typescript/communitytoolkit.aspire.hosting.logto/logtoresource.md) `builder`

## Defined on

- [LogtoResource](/reference/api/typescript/communitytoolkit.aspire.hosting.logto/logtoresource.md) -- `handle`
