mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 18:44:26 +02:00
Add support for WorkerLogger decorator in LoggerManager, deprecate core Logger class, deprecate DI::workerLogger()
This commit is contained in:
parent
0804413c41
commit
510f4e02c8
5 changed files with 76 additions and 21 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue