]> git.mxchange.org Git - friendica.git/blobdiff - src/Factory/LoggerFactory.php
Add DDD classes for Mastodon\Field entity
[friendica.git] / src / Factory / LoggerFactory.php
index d177faf7a93081941ba99998d6ec9d36516bd31b..b2450a96621ae211da7182e9b2d8b24c3d701c92 100644 (file)
@@ -2,7 +2,7 @@
 
 namespace Friendica\Factory;
 
-use Friendica\Core\Config\Configuration;
+use Friendica\Core\Config\IConfig;
 use Friendica\Core\Logger;
 use Friendica\Database\Database;
 use Friendica\Network\HTTPException\InternalServerErrorException;
@@ -49,14 +49,14 @@ class LoggerFactory
        /**
         * Creates a new PSR-3 compliant logger instances
         *
-        * @param Database      $database The Friendica Database instance
-        * @param Configuration $config   The config
-        * @param Profiler      $profiler The profiler of the app
-        * @param FileSystem    $fileSystem FileSystem utils
+        * @param Database   $database   The Friendica Database instance
+        * @param IConfig    $config     The config
+        * @param Profiler   $profiler   The profiler of the app
+        * @param FileSystem $fileSystem FileSystem utils
         *
         * @return LoggerInterface The PSR-3 compliant logger instance
         */
-       public function create(Database $database, Configuration $config, Profiler $profiler, FileSystem $fileSystem)
+       public function create(Database $database, IConfig $config, Profiler $profiler, FileSystem $fileSystem)
        {
                if (empty($config->get('system', 'debugging', false))) {
                        $logger = new VoidLogger();
@@ -137,16 +137,16 @@ class LoggerFactory
         *
         * It should never get filled during normal usage of Friendica
         *
-        * @param Configuration $config   The config
-        * @param Profiler      $profiler The profiler of the app
-        * @param FileSystem    $fileSystem FileSystem utils
+        * @param IConfig    $config     The config
+        * @param Profiler   $profiler   The profiler of the app
+        * @param FileSystem $fileSystem FileSystem utils
         *
         * @return LoggerInterface The PSR-3 compliant logger instance
         *
         * @throws InternalServerErrorException
         * @throws \Exception
         */
-       public static function createDev(Configuration $config, Profiler $profiler, FileSystem $fileSystem)
+       public static function createDev(IConfig $config, Profiler $profiler, FileSystem $fileSystem)
        {
                $debugging   = $config->get('system', 'debugging');
                $stream      = $config->get('system', 'dlogfile');
@@ -225,9 +225,9 @@ class LoggerFactory
                        case "3":
                                return LogLevel::INFO;
                        // legacy DATA
-                       case "5":
-                       // legacy ALL
                        case "4":
+                       // legacy ALL
+                       case "5":
                                return LogLevel::DEBUG;
                        // default if nothing set
                        default: