- /**
- * Sets the level at which the conversion to Exception is done.
- *
- * @param int|null $level The level (null to use the error_reporting() value and 0 to disable)
- *
- * @deprecated since version 2.6, to be removed in 3.0. Use throwAt() instead.
- */
- public function setLevel($level)
- {
- @trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the throwAt() method instead.', E_USER_DEPRECATED);
-
- $level = null === $level ? error_reporting() : $level;
- $this->throwAt($level, true);
- }
-
- /**
- * Sets the display_errors flag value.
- *
- * @param int $displayErrors The display_errors flag value
- *
- * @deprecated since version 2.6, to be removed in 3.0. Use throwAt() instead.
- */
- public function setDisplayErrors($displayErrors)
- {
- @trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the throwAt() method instead.', E_USER_DEPRECATED);
-
- if ($displayErrors) {
- $this->throwAt($this->displayErrors, true);
- } else {
- $displayErrors = $this->displayErrors;
- $this->throwAt(0, true);
- $this->displayErrors = $displayErrors;
- }
- }
-
- /**
- * Sets a logger for the given channel.
- *
- * @param LoggerInterface $logger A logger interface
- * @param string $channel The channel associated with the logger (deprecation, emergency or scream)
- *
- * @deprecated since version 2.6, to be removed in 3.0. Use setLoggers() or setDefaultLogger() instead.
- */
- public static function setLogger(LoggerInterface $logger, $channel = 'deprecation')