Files
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

25 lines
636 B
PHP

<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Servers;
use Pterodactyl\Exceptions\Http\Connection\DaemonConnectionException;
use Pterodactyl\Models\Server;
interface ReadsServerLogs
{
/** The most console lines Wings returns for a single read. */
public const int MAX_LINES = 100;
/**
* Read the most recent console output of a server, oldest line first. The
* requested line count is clamped between one and MAX_LINES.
*
* @return list<string>
*
* @throws DaemonConnectionException
*/
public function read(Server $server, int $lines = self::MAX_LINES): array;
}