public static function findBestLoggerConfigurationForClass($className) {
        // The best logger configuration for the given class name
        $bestLogger = null;

        // For each registered logger configuration
        foreach (self::getLoggers() as $logger) {

            // If the current class name corresponds to a logger configuration
            if (strpos($className, $logger['class']) === 0) {
                // Add a "length" property to the current logger configuration
                $logger['length'] = strlen($logger['class']);

                // If no best logger existed, the current one is considered as the best
                if (!isset($bestLogger)) {
                    $bestLogger = $logger;
                }
                // A previous best logger existed
                else {
                    // If the current logger is considered more precise than the best one
                    if ($logger['length'] > $bestLogger['length']) {
                        // The current logger is now considered as the best
                        $bestLogger = $logger;
                    }
                }
            }
        }

        return $bestLogger;
    }