Add support for WorkerLogger decorator in LoggerManager, deprecate core Logger class, deprecate DI::workerLogger()

This commit is contained in:
Art4 2025-01-12 08:21:30 +00:00
parent 0804413c41
commit 510f4e02c8
5 changed files with 76 additions and 21 deletions

View file

@ -13,6 +13,8 @@ use Psr\Log\LoggerInterface;
/**
* Logger functions
*
* @deprecated 2025.02 Use constructor injection or `DI::logger()` instead
*/
class Logger
{
@ -48,6 +50,8 @@ class Logger
/**
* Enable additional logging for worker usage
*
* @deprecated
*
* @param string $functionName The worker function, which got called
*
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
@ -60,6 +64,8 @@ class Logger
/**
* Disable additional logging for worker usage
*
* @deprecated
*/
public static function disableWorker()
{