boolean_smtp_log_file_level
Filters the least severe level a BooleanSMTP log channel writes.
filter Tier A Since 1.0.0
Signature
add_filter( 'boolean_smtp_log_file_level', $callback, 10, 2 );Parameters
| Parameter | 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—BooleanSmtp\Support\Logging\LogChannels::level()
Example
add_filter( 'boolean_smtp_log_file_level', function ( string $level, string $channel ) { return $level;}, 10, 2 );Next steps
- Log files — every hook in this area, in firing order where that applies.
- Hook Explorer — filter and search every hook.