mirror of
https://github.com/friendica/friendica
synced 2025-04-27 23:50:10 +00:00
Rename & Testfix
This commit is contained in:
parent
cc8a6c85ae
commit
eec4ee3fed
8 changed files with 17 additions and 32 deletions
|
@ -16,7 +16,7 @@ use Psr\Log\LogLevel;
|
|||
* - UID for each call
|
||||
* - Channel of the current call (i.e. index, worker, daemon, ...)
|
||||
*/
|
||||
abstract class AbstractFriendicaLogger implements LoggerInterface
|
||||
abstract class AbstractLogger implements LoggerInterface
|
||||
{
|
||||
/**
|
||||
* The output channel of this logger
|
|
@ -11,7 +11,7 @@ use Monolog\Logger;
|
|||
* If you want to debug only interactions from your IP or the IP of a remote server for federation debug,
|
||||
* you'll use Logger::develop() for the duration of your work, and you clean it up when you're done before submitting your PR.
|
||||
*/
|
||||
class FriendicaDevelopHandler extends Handler\AbstractHandler
|
||||
class DevelopHandler extends Handler\AbstractHandler
|
||||
{
|
||||
/**
|
||||
* @var string The IP of the developer who wants to debug
|
|
@ -9,7 +9,7 @@ use Monolog\Processor\ProcessorInterface;
|
|||
/**
|
||||
* Injects line/file//function where the log message came from
|
||||
*/
|
||||
class FriendicaIntrospectionProcessor implements ProcessorInterface
|
||||
class IntrospectionProcessor implements ProcessorInterface
|
||||
{
|
||||
private $level;
|
||||
|
|
@ -24,6 +24,4 @@ Each logging implementation should pe capable of printing at least the following
|
|||
- A log message
|
||||
- A context of the log message (f.e which user)
|
||||
|
||||
If possible, a Logger should extend [`AbstractFriendicaLogger`](AbstractFriendicaLogger.php), because it contains additional, Friendica specific business logic for each logging call.
|
||||
|
||||
Using AbstractFriendicaLogger makes the logger capable of adding profiling data for each log call.
|
||||
If possible, a Logger should extend [`AbstractLogger`](AbstractLogger.php), because it contains additional, Friendica specific business logic for each logging call.
|
||||
|
|
|
@ -9,7 +9,7 @@ use Psr\Log\LogLevel;
|
|||
/**
|
||||
* A Logger instance for logging into a stream (file, stdout, stderr)
|
||||
*/
|
||||
class StreamLogger extends AbstractFriendicaLogger
|
||||
class StreamLogger extends AbstractLogger
|
||||
{
|
||||
/**
|
||||
* The minimum loglevel at which this logger will be triggered
|
||||
|
|
|
@ -11,7 +11,7 @@ use Psr\Log\LogLevel;
|
|||
* A Logger instance for syslogging (fast, but simple)
|
||||
* @see http://php.net/manual/en/function.syslog.php
|
||||
*/
|
||||
class SyslogLogger extends AbstractFriendicaLogger
|
||||
class SyslogLogger extends AbstractLogger
|
||||
{
|
||||
const IDENT = 'Friendica';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue