LoggerChannel

Defines a logger channel that most implementations will use.

Hierarchy

File

core/lib/Drupal/Core/Logger/LoggerChannel.php, line 14

Namespace

Drupal\Core\Logger

Members

Name Modifiers Type Description
LoggerChannel::$callDepth protected property Number of times LoggerChannel::log() has been called for a single message.
LoggerChannel::$channel protected property The name of the channel of this logger instance.
LoggerChannel::$currentUser protected property The current user object.
LoggerChannel::$levelTranslation protected property Map of PSR3 log constants to RFC 5424 log constants.
LoggerChannel::$loggers protected property An array of arrays of \Psr\Log\LoggerInterface keyed by priority.
LoggerChannel::$requestStack protected property The request stack object.
LoggerChannel::addLogger public function Adds a logger. Overrides LoggerChannelInterface::addLogger
LoggerChannel::log public function Logs with an arbitrary level. Overrides LoggerTrait::log
LoggerChannel::MAX_CALL_DEPTH constant Maximum call depth to self::log() for a single log message.
LoggerChannel::setCurrentUser public function Sets the current user. Overrides LoggerChannelInterface::setCurrentUser
LoggerChannel::setLoggers public function Sets the loggers for this channel. Overrides LoggerChannelInterface::setLoggers
LoggerChannel::setRequestStack public function Sets the request stack. Overrides LoggerChannelInterface::setRequestStack
LoggerChannel::sortLoggers protected function Sorts loggers according to priority.
LoggerChannel::__construct public function Constructs a LoggerChannel object
LoggerTrait::alert public function Action must be taken immediately. Overrides LoggerInterface::alert
LoggerTrait::critical public function Critical conditions. Overrides LoggerInterface::critical
LoggerTrait::debug public function Detailed debug information. Overrides LoggerInterface::debug
LoggerTrait::emergency public function System is unusable. Overrides LoggerInterface::emergency
LoggerTrait::error public function Runtime errors that do not require immediate action but should typically be logged and monitored. Overrides LoggerInterface::error
LoggerTrait::info public function Interesting events. Overrides LoggerInterface::info
LoggerTrait::notice public function Normal but significant events. Overrides LoggerInterface::notice
LoggerTrait::warning public function Exceptional occurrences that are not errors. Overrides LoggerInterface::warning
doc_Drupal
2016-10-29 09:24:57
Comments
Leave a Comment

Please login to continue.