# solid-performance/1.5.0/src/Performance/Log/Handlers/Null_Handler.php

Solid Performance – Your No-Code Caching, Performance, &amp; Page Speed Solution, version 1.5.0. 38 lines.

- Page: https://pluginprobe.com/plugins/solid-performance/1.5.0/code/src/Performance/Log/Handlers/Null_Handler.php
- Raw: https://pluginprobe.com/plugins/solid-performance/1.5.0/raw/src/Performance/Log/Handlers/Null_Handler.php
- Modified: 2025-02-13T01:04:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/solid-performance/1.5.0/code/src/Performance/Log/Handlers/Null_Handler.php#L10-L20`.

```php
<?php
/**
 * Black hole.
 *
 * Any record it can handle will be thrown away.
 *
 * @package SolidWP\Performance
 */

declare( strict_types=1 );

namespace SolidWP\Performance\Log\Handlers;

use SolidWP\Performance\Monolog\Handler\AbstractHandler;

/**
 * Black hole.
 *
 * Any record it can handle will be thrown away.
 *
 * @phpstan-import-type Record from \Monolog\Logger
 */
final class Null_Handler extends AbstractHandler {

	/**
	 * Throw all logs away.
	 *
	 * @param array $record The monolog Record.
	 *
	 * @phpstan-param Record $record
	 *
	 * @return bool
	 */
	public function handle( array $record ): bool {
		return $record['level'] >= $this->level;
	}
}

```
