Log object with label to firebug console

@see FirePHP::ERROR
@param mixes $Object
@param string $Label
@return true
@throws Exception
482158
public function error($Object, $Label = null, $Options = array())
    {
        return $this->fb($Object, $Label, FirePHP::ERROR, $Options);
    }
692985
function (label) {
              console.log(label, {
                constructors: constructors,
                constructor: key,
                params: args
              });
            }
944870
private function validateObject($object, \SplObjectStorage $validatedInstancesContainer)
    {
        $className = $this->entityManager->getClassMetadata(get_class($object))->getName();
        $validator = $this->validatorResolver->getBaseValidatorConjunction($className, ['Persistence', 'Default']);
        if ($validator === null) {
            return;
        }

        $validator->setValidatedInstancesContainer($validatedInstancesContainer);
        $validationResult = $validator->validate($object);
        if ($validationResult->hasErrors()) {
            $errorMessages = '';
            $errorCount = 0;
            $allErrors = $validationResult->getFlattenedErrors();
            foreach ($allErrors as $path => $errors) {
                $errorMessages .= $path . ':' . PHP_EOL;
                foreach ($errors as $error) {
                    $errorCount++;
                    $errorMessages .= (string)$error . PHP_EOL;
                }
            }
            throw new ObjectValidationFailedException('An instance of "' . get_class($object) . '" failed to pass validation with ' . $errorCount . ' error(s): ' . PHP_EOL . $errorMessages, 1322585164);
        }
    }
3472
private function scalar($scalar, string $label = ''): void
    {
        if (is_bool($scalar)) {
            $scalar = $scalar ? 'true' : 'false';
        } elseif (is_string($scalar)) {
            $scalar = "'{$this->escape($scalar)}'";
        }

        if ($label !== '') {
            $label = $this->escape($label);

            echo "console.log('%c{$label}','font-weight:bold',{$scalar});";
        } else {
            echo "console.log({$scalar});";
        }
    }
8683
protected function validatePrompt($field, $label, $validator, $default = null)
    {
        $input = $this->prompt($label, $default);

        if (!$this->isValidInput($input, $field, $validator)) {
            $this->errors();
            $this->validatePrompt($field, $label, $validator, $default);
        }
    }
1359549
public function updateLabels($labels, $operation = 'add')
    {

        $cypher = $this->grammar->compileUpdateLabels($this, $labels, $operation);

        $updated = $this->connection->update($cypher, $this->getBindings());

        return (isset($updated[0]) && isset($updated[0][0])) ? $updated[0][0] : 0;
    }
31846
protected function setErrorInteger($field, $label)
    {
        $error = $this->translation->text('@field must be integer', array('@field' => $label));
        return $this->setError($field, $error);
    }
1009789
public function logAssertFailed($message, $object = null)
    {
        $this->doLog(LogHelper::LOG_LEVEL_ASSERT_FAILED, $message, $object);
    }
611650
public function setLabel($label)
        {
            if (null !== $label && !is_string($label)) {
                throw new Exception(
                        'Invalid argument: $label must be a string or null');
            }

            $this->_label = $label;
            return $this;
        }
186361
static function writeWarning( $conditionName, $string, $label = "" )
    {
        if ( !eZDebugSetting::isConditionTrue( $conditionName, eZDebug::LEVEL_WARNING ) )
            return false;
        eZDebug::writeWarning( $string, eZDebugSetting::changeLabel( $conditionName, $label ) );
    }
468164
protected function filterRegexp($field, $details, $label, $message) {
        if (preg_match($details['expression'], $this->getValue($field))) {
            return true;
        }
        throw new \Exception($message ? $message : $this->translate("Doesn't match expression!"));
    }
494184
function addPattern($pattern, $label = true) {
            $count = count($this->_patterns);
            $this->_patterns[$count] = $pattern;
            $this->_labels[$count] = $label;
            $this->_regex = null;
        }
360004
protected function prepareRenderLabel($label, $spot)
    {
        if (!is_object($label)) {
            $label = $this->add(new Label(), $spot)
                ->set($label);
        } else {
            $this->add($label, $spot);
        }

        if ($label->ui != 'label') {
            $label->addClass('label');
        }

        return $label;
    }
17734
public static function get_by_object_label_language($object, $label, \Skeleton\I18n\LanguageInterface $language, $auto_create = true) {
		$class_parents = class_parents($object);
		if ($class_parents === false OR count($class_parents) == 0) {
			$class = get_class($object);
		} else {
			$class = array_pop($class_parents);
		}

		if (self::trait_cache_enabled()) {
			try {
                $key = $class . '_' . $object->id . '_' . $label . '_' . $language->name_short;
				$object = self::cache_get($key);
				return $object;
			} catch (\Exception $e) {}
        }

        $db = Database::Get();
		$data = $db->get_row('SELECT * FROM object_text WHERE classname=? AND object_id=? AND label=? AND language_id=?', [ $class, $object->id, $label, $language->id ]);

		if ($data === null) {
		    if (!$auto_create) {
			    throw new \Exception('Object text does not exists');
			} else {
				$requested = new self();
                $requested->object = $object;
				$requested->language_id = $language->id;
				$requested->label = $label;
				$requested->content = '';
				$requested->save();

				if (self::trait_cache_enabled()) {
                    $key = $class . '_' . $object->id . '_' . $label . '_' . $language->name_short;
                    self::cache_set($key, $requested);
                }

                return $requested;
			}
		}

		$object_text = new self();
		$object_text->id = $data['id'];
		$object_text->details = $data;

		if (self::trait_cache_enabled()) {
            $key = $class . '_' . $object->id . '_' . $label . '_' . $language->name_short;
            self::cache_set($key, $object_text);
        }

		return $object_text;
	}
493120
public static function setConnection(string $label=null)
    {
        if ($label === null && static::$currentConnection === null) {
            static::$currentConnection = static::getDefaultLabel();
            return;
        }

        $config = static::config();
        if (isset($config[$label])) {
            static::$currentConnection = $label;
        } else {
            throw new Exception('The provided label does not exist in the config.');
        }
    }
734678
public static function print_timer($timer, $label = 'Timer', $dest = 'console')
    {
        static $print_count = 0;

        $print_count++;
        $now  = self::timer();
        $diff = $now - $timer;

        if (empty($label)) {
            $label = 'Timer '.$print_count;
        }

        self::write_log($dest, sprintf("%s: %0.4f sec", $label, $diff));
    }
987664
public function log($level, $message, $object = '')
    {
        if ($this->shouldIgnoreThisLog($level)) {
            return;
        }
        $msg = $this->generateLog($level, $message, $object);
        $target_file = $this->decideTargetFile();
        if (!$target_file) {
            echo $msg;
            return;
        }
        @file_put_contents($target_file, $msg, FILE_APPEND);
    }