Kernel : Linux vmw02p.internet-indee.net 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Tue Nov 16 14:42:35 UTC 2021 x86_64
Disable function : NONE
Safe mode : OFF
Host : firofichi.it | Server ip : 5.196.164.15 | Your ip : 18.226.187.194 | Time @ Server : 19 Oct 2024 08:35:07
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/webmaster/firofichi/www/vendor/consolidation/log/src/

HOME about upload exec mass file domain root vuln newfile newfolder kill me

File Path : /home/webmaster/firofichi/www/vendor/consolidation/log/src/LoggerManager.php

<?php namespace Consolidation\Log; use Psr\Log\AbstractLogger; use Psr\Log\LoggerInterface; use Psr\Log\InvalidArgumentException; use Psr\Log\LogLevel; /** * LoggerManager is a PSR-3 logger that can delegate * log messages to other loggers. This is ideal if * you need to inject a logger into various objects * in your application, but need to change the way that * the application logs later. * * @author Greg Anderson <greg.1.anderson@greenknowe.org> */ class LoggerManager extends AbstractLogger implements StylableLoggerInterface { /** @var LoggerInterface[] */ protected $loggers = []; /** @var LoggerInterface */ protected $fallbackLogger = null; /** @var LogOutputStylerInterface */ protected $outputStyler; /** @var array */ protected $formatFunctionMap = []; /** * reset removes all loggers from the manager. */ public function reset() { $this->loggers = []; return $this; } /** * setLogOutputStyler will remember a style that * should be applied to every stylable logger * added to this manager. */ public function setLogOutputStyler(LogOutputStylerInterface $outputStyler, array $formatFunctionMap = array()) { $this->outputStyler = $outputStyler; $this->formatFunctionMap = $this->formatFunctionMap; } /** * add adds a named logger to the manager, * replacing any logger of the same name. * * @param string $name Name of logger to add * @param LoggerInterface $logger Logger to send messages to */ public function add($name, LoggerInterface $logger) { // If this manager has been given a log style, // and the logger being added accepts a log // style, then copy our style to the logger // being added. if ($this->outputStyler && $logger instanceof StylableLoggerInterface) { $logger->setLogOutputStyler($this->outputStyler, $this->formatFunctionMap); } $this->loggers[$name] = $logger; return $this; } /** * remove a named logger from the manager. * * @param string $name Name of the logger to remove. */ public function remove($name) { unset($this->loggers[$name]); return $this; } /** * fallbackLogger provides a logger that will * be used only in instances where someone logs * to the logger manager at a time when there * are no other loggers registered. If there is * no fallback logger, then the log messages * are simply dropped. * * @param LoggerInterface $logger Logger to use as the fallback logger */ public function fallbackLogger(LoggerInterface $logger) { $this->fallbackLogger = $logger; return $this; } /** * {@inheritdoc} */ public function log($level, $message, array $context = array()) { foreach ($this->getLoggers() as $logger) { $logger->log($level, $message, $context); } } /** * Return either the list of registered loggers, * or a single-element list containing only the * fallback logger. */ protected function getLoggers() { if (!empty($this->loggers)) { return $this->loggers; } if (isset($this->fallbackLogger)) { return [ $this->fallbackLogger ]; } return []; } }