# boolean_smtp_log_file_level

> Filters the least severe level a BooleanSMTP log channel writes.

Filter · Tier A · Since 1.0.0



## Signature

```php
add_filter( 'boolean_smtp_log_file_level', $callback, 10, 2 );
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$level` | `string` | A PSR-3 level name. Default `debug` for `mail`, `requests` and `queries`; `info` for `app` (what PHP's error log receives while the channel is off); `warning` for `core`. |
| `$channel` | `string` | The channel name. |

**Returns** `string` — A PSR-3 level name.

## Fires in

- [app/Support/Logging/LogChannels.php:202](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Support/Logging/LogChannels.php#L202) — `BooleanSmtp\Support\Logging\LogChannels::level()`

## Example

```php
add_filter( 'boolean_smtp_log_file_level', function ( string $level, string $channel ) {
    return $level;
}, 10, 2 );
```
