# FileTransportConfig

`interface` in `services` · v0.8.2

<https://docs.seedcord.org/packages/services/0.8.2/interfaces/file-transport-config>

File transport configuration.

Logs to rotating files with automatic directory creation.

```ts
interface FileTransportConfig extends BaseTransportConfig
```

## Properties

### filename

```ts
filename: string;
```

File path (supports `{channel}`, `{date}`, `{timestamp}` placeholders)

### format

```ts
format: LoggerFormatMode;
```

Output format mode

### level

```ts
level: LoggerLevel;
```

Minimum log level for this transport

### maxFiles

```ts
maxFiles: number;
```

Maximum number of rotated log files to keep

### maxSize

```ts
maxSize: number;
```

Maximum file size in bytes before rotation

### stripAnsi

```ts
stripAnsi: boolean;
```

Whether to strip ANSI color codes from output

### type

```ts
type: "file";
```

Transport type
