| Server IP : 3.93.235.159 / Your IP : 216.73.216.140 Web Server : Apache System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64 User : bitnami ( 1000) PHP Version : 8.2.9 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/plugins/yoast-test-helper/src/logger/ |
Upload File : |
<?php
namespace Yoast\WP\Test_Helper\Logger;
/**
* Storage backend for captured log entries.
*/
interface Log_Storage {
/**
* Prepares the backend for writing (creates the table, ensures the file exists, etc.).
*
* @return void
*/
public function setup();
/**
* Persists a single log entry.
*
* @param string $level PSR-3 log level.
* @param string $message The interpolated message.
* @param array<string, scalar|array|object|null> $context The original context array.
* @param int $timestamp Unix timestamp at which the entry was captured.
*
* @return void
*/
public function write( $level, $message, array $context, $timestamp );
/**
* Reads the most recent entries, newest first.
*
* @param int $limit Maximum number of entries to return.
*
* @return array<int, array{logged_at: string, level: string, message: string, context: array<string, scalar|array|object|null>}> The entries.
*/
public function read( $limit = 50 );
/**
* Removes all entries from the backend.
*
* @return void
*/
public function clear();
}