LoggerChannel::$levelTranslation

Map of PSR3 log constants to RFC 5424 log constants. Type: array File core/lib/Drupal/Core/Logger/LoggerChannel.php, line 49 Class LoggerChannel Defines a logger channel that most implementations will use. Namespace Drupal\Core\Logger Code protected $levelTranslation = array( LogLevel::EMERGENCY => RfcLogLevel::EMERGENCY, LogLevel::ALERT => RfcLogLevel::ALERT, LogLevel::CRITICAL => RfcLogLevel::CRITICAL, LogLevel::ERROR => RfcLogLevel::ERROR, LogLevel::WARNING =&g

LoggerChannel::$currentUser

The current user object. Type: \Drupal\Core\Session\AccountInterface File core/lib/Drupal/Core/Logger/LoggerChannel.php, line 79 Class LoggerChannel Defines a logger channel that most implementations will use. Namespace Drupal\Core\Logger Code protected $currentUser;

LoggerChannel::$channel

The name of the channel of this logger instance. Type: string File core/lib/Drupal/Core/Logger/LoggerChannel.php, line 42 Class LoggerChannel Defines a logger channel that most implementations will use. Namespace Drupal\Core\Logger Code protected $channel;

LoggerChannel::$callDepth

Number of times LoggerChannel::log() has been called for a single message. Type: int File core/lib/Drupal/Core/Logger/LoggerChannel.php, line 35 Class LoggerChannel Defines a logger channel that most implementations will use. Namespace Drupal\Core\Logger Code protected $callDepth = 0;

LoggerChannel

Defines a logger channel that most implementations will use. Hierarchy class \Drupal\Core\Logger\LoggerChannel implements LoggerChannelInterface uses LoggerTrait 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 t

Log::__construct

public Log::__construct($key = 'default') Constructor. Parameters $key: The database connection key for which to enable logging. File core/lib/Drupal/Core/Database/Log.php, line 47 Class Log Database query logger. Namespace Drupal\Core\Database Code public function __construct($key = 'default') { $this->connectionKey = $key; }

Log::start

public Log::start($logging_key) Begin logging queries to the specified connection and logging key. If the specified logging key is already running this method does nothing. Parameters $logging_key: The identification key for this log request. By specifying different logging keys we are able to start and stop multiple logging runs simultaneously without them colliding. File core/lib/Drupal/Core/Database/Log.php, line 61 Class Log Database query logger. Namespace Drupal\Core\Database Co

Log::log

public Log::log(StatementInterface $statement, $args, $time) Log a query to all active logging keys. Parameters $statement: The prepared statement object to log. $args: The arguments passed to the statement object. $time: The time in milliseconds the query took to execute. File core/lib/Drupal/Core/Database/Log.php, line 112 Class Log Database query logger. Namespace Drupal\Core\Database Code public function log(StatementInterface $statement, $args, $time) { foreach (array_keys($thi

Log::get

public Log::get($logging_key) Retrieve the query log for the specified logging key so far. Parameters $logging_key: The logging key to fetch. Return value An indexed array of all query records for this logging key. File core/lib/Drupal/Core/Database/Log.php, line 75 Class Log Database query logger. Namespace Drupal\Core\Database Code public function get($logging_key) { return $this->queryLog[$logging_key]; }

Log::findCaller

public Log::findCaller() Determine the routine that called this query. We define "the routine that called this query" as the first entry in the call stack that is not inside the includes/Drupal/Database directory, does not begin with db_ and does have a file (which excludes call_user_func_array(), anonymous functions and similar). That makes the climbing logic very simple, and handles the variable stack depth caused by the query builders. See the debug_backtrace() function. Return value This m