---
meta:
 - name: keywords
   description: api typescript node.js documentation ContextLoggerOptions interface
---
# ContextLoggerOptions - @tsed/di

## Usage

```typescript
import { ContextLoggerOptions } from "@tsed/di";
```

> See [/packages/di/src/common/domain/ContextLogger.ts](https://github.com/tsedio/tsed/blob/v8.26.2/packages/di/src/common/domain/ContextLogger.ts#L0-L0).

## Overview

```ts
interface ContextLoggerOptions extends Record<string, any> {
    id: string;
    logger?: DILogger;
    level?: "debug" | "info" | "warn" | "error" | "off" | "all";
    maxStackSize?: number;
    additionalProps?: Record<any, any>;
}
```

<!-- Description -->

## Description

Options for creating a context logger instance.

<!-- Members -->

## id

```ts
id: string;
```

## logger

```ts
logger?: DILogger;
```

## level

```ts
level?: "debug" | "info" | "warn" | "error" | "off" | "all";
```

## maxStackSize

```ts
maxStackSize?: number;
```

## additionalProps

```ts
additionalProps?: Record<any, any>;
```
