public function LdapDetailLog::log in Lightweight Directory Access Protocol (LDAP) 8.3
Same name and namespace in other branches
- 8.4 ldap_servers/src/Logger/LdapDetailLog.php \Drupal\ldap_servers\Logger\LdapDetailLog::log()
If detailed logging is enabled, log to Drupal log more details.
Parameters
string $message: Log message.
array $context: Values to replace in log.
string $module: Logging channel to use.
File
- ldap_servers/
src/ Logger/ LdapDetailLog.php, line 39
Class
- LdapDetailLog
- The detailed logger for the LDAP modules.
Namespace
Drupal\ldap_servers\LoggerCode
public function log($message, array $context = [], $module = 'ldap_servers') {
if ($this->config
->get('watchdog_detail')) {
$this->loggerFactory
->get($module)
->debug($message, $context);
}
}