LoggingForm::buildForm

public LoggingForm::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides ConfigFormBase::buildForm File core/modules/system/src/Form/LoggingForm.php, line 30 Class LoggingForm Configure logging settings for this site. Namespace Drupal\system\Form Code pub

LoggingForm

Configure logging settings for this site. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Form\ConfigFormBase uses ConfigFormBaseTraitclass \Drupal\system\Form\LoggingForm File core/modules/system/src/Form/LoggingForm.php, line 11 Namespace Drupal\system\Form Members Name Mo

Logging severity levels

Logging severity levels as defined in RFC 5424. The constant definitions of this class correspond to the logging severity levels defined in RFC 5424, section 4.1.1. PHP supplies predefined LOG_* constants for use in the syslog() function, but their values on Windows builds do not correspond to RFC 5424. The associated PHP bug report was closed with the comment, "And it's also not a bug, as Windows just have less log levels," and "So the behavior you're seeing is perfectly normal." End of "defgr

LoggerChannelTrait::setLoggerFactory

public LoggerChannelTrait::setLoggerFactory(LoggerChannelFactoryInterface $logger_factory) Injects the logger channel factory. Parameters \Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger channel factory service. Return value $this File core/lib/Drupal/Core/Logger/LoggerChannelTrait.php, line 52 Class LoggerChannelTrait Wrapper methods for the logger factory service. Namespace Drupal\Core\Logger Code public function setLoggerFactory(LoggerChannelFactoryInt

LoggerChannelTrait::getLogger

protected LoggerChannelTrait::getLogger($channel) Gets the logger for a specific channel. @todo Require the use of injected services: https://www.drupal.org/node/2733703 Parameters string $channel: The name of the channel. Can be any string, but the general practice is to use the name of the subsystem calling this. Return value \Psr\Log\LoggerInterface The logger for the given channel. File core/lib/Drupal/Core/Logger/LoggerChannelTrait.php, line 37 Class LoggerChannelTrait Wrapper metho

LoggerChannelTrait::$loggerFactory

The logger channel factory service. Type: \Drupal\Core\Logger\LoggerChannelFactoryInterface File core/lib/Drupal/Core/Logger/LoggerChannelTrait.php, line 22 Class LoggerChannelTrait Wrapper methods for the logger factory service. Namespace Drupal\Core\Logger Code protected $loggerFactory;

LoggerChannelTrait

Wrapper methods for the logger factory service. This utility trait should only be used in application-level code, such as classes that would implement ContainerInjectionInterface. Services registered in the Container should not use this trait but inject the appropriate service directly for easier testing. Hierarchy trait \Drupal\Core\Logger\LoggerChannelTrait See also \Drupal\Core\DependencyInjection\ContainerInjectionInterface File core/lib/Drupal/Core/Logger/LoggerChannelTrait.php, line 1

LoggerChannelInterface::setRequestStack

public LoggerChannelInterface::setRequestStack(RequestStack $requestStack = NULL) Sets the request stack. Parameters \Symfony\Component\HttpFoundation\RequestStack|null $requestStack: The current request object. File core/lib/Drupal/Core/Logger/LoggerChannelInterface.php, line 43 Class LoggerChannelInterface Logger channel interface. Namespace Drupal\Core\Logger Code public function setRequestStack(RequestStack $requestStack = NULL);

LoggerChannelInterface::setLoggers

public LoggerChannelInterface::setLoggers(array $loggers) Sets the loggers for this channel. Parameters array $loggers: An array of arrays of \Psr\Log\LoggerInterface keyed by priority. File core/lib/Drupal/Core/Logger/LoggerChannelInterface.php, line 59 Class LoggerChannelInterface Logger channel interface. Namespace Drupal\Core\Logger Code public function setLoggers(array $loggers);

LoggerChannelInterface::setCurrentUser

public LoggerChannelInterface::setCurrentUser(AccountInterface $current_user = NULL) Sets the current user. Parameters \Drupal\Core\Session\AccountInterface|null $current_user: The current user object. File core/lib/Drupal/Core/Logger/LoggerChannelInterface.php, line 51 Class LoggerChannelInterface Logger channel interface. Namespace Drupal\Core\Logger Code public function setCurrentUser(AccountInterface $current_user = NULL);