mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:50:12 +00:00
Refactored Logging environment (cleaned up)
This commit is contained in:
parent
1b45d3fad7
commit
4810ca570f
6 changed files with 380 additions and 42 deletions
|
@ -3,6 +3,7 @@
|
|||
namespace Friendica\Util\Logger;
|
||||
|
||||
use Friendica\Network\HTTPException\InternalServerErrorException;
|
||||
use Friendica\Util\Introspection;
|
||||
use Friendica\Util\Strings;
|
||||
use Psr\Log\InvalidArgumentException;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
@ -75,7 +76,7 @@ class SyslogLogger implements LoggerInterface
|
|||
private $logLevel;
|
||||
|
||||
/**
|
||||
* The Introspector for the current call
|
||||
* The Introspection for the current call
|
||||
* @var Introspection
|
||||
*/
|
||||
private $introspection;
|
||||
|
@ -87,10 +88,13 @@ class SyslogLogger implements LoggerInterface
|
|||
private $logUid;
|
||||
|
||||
/**
|
||||
* @param string $channel The output channel
|
||||
* @param string $level The minimum loglevel at which this logger will be triggered
|
||||
* @param int $logOpts Indicates what logging options will be used when generating a log message
|
||||
* @param int $logFacility Used to specify what type of program is logging the message
|
||||
* @param string $channel The output channel
|
||||
* @param Introspection $introspection The introspection of the current call
|
||||
* @param string $level The minimum loglevel at which this logger will be triggered
|
||||
* @param int $logOpts Indicates what logging options will be used when generating a log message
|
||||
* @param int $logFacility Used to specify what type of program is logging the message
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function __construct($channel, Introspection $introspection, $level = LogLevel::NOTICE, $logOpts = LOG_PID, $logFacility = LOG_USER)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue