mirror of
https://github.com/friendica/friendica
synced 2025-04-28 22:24:22 +02:00
28 lines
758 B
PHP
28 lines
758 B
PHP
<?php
|
|
|
|
// Copyright (C) 2010-2024, the Friendica project
|
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
namespace Friendica\Core\Logger\Capability;
|
|
|
|
/**
|
|
* Whenever a logging specific check is necessary, use this interface to encapsulate and centralize this logic
|
|
*/
|
|
interface ICheckLoggerSettings
|
|
{
|
|
/**
|
|
* Checks if the logfile is set and usable
|
|
*
|
|
* @return string|null null in case everything is ok, otherwise returns the error
|
|
*/
|
|
public function checkLogfile(): ?string;
|
|
|
|
/**
|
|
* Checks if the debugging logfile is usable in case it is set!
|
|
*
|
|
* @return string|null null in case everything is ok, otherwise returns the error
|
|
*/
|
|
public function checkDebugLogfile(): ?string;
|
|
}
|