Skip to content

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

ParameterTypeDescription
$levelstringA 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`.
$channelstringThe channel name.

Returns string — A PSR-3 level name.

Fires in

Example

boolean_smtp_log_file_level.php
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.