View source
<?php
namespace Drupal\httpbl\ProxyClass\Logger;
class HttpblLogTrapper implements \Drupal\httpbl\Logger\HttpblLogTrapperInterface {
use \Drupal\Core\DependencyInjection\DependencySerializationTrait;
protected $drupalProxyOriginalServiceId;
protected $service;
protected $container;
public function __construct(\Symfony\Component\DependencyInjection\ContainerInterface $container, $drupal_proxy_original_service_id) {
$this->container = $container;
$this->drupalProxyOriginalServiceId = $drupal_proxy_original_service_id;
}
protected function lazyLoadItself() {
if (!isset($this->service)) {
$this->service = $this->container
->get($this->drupalProxyOriginalServiceId);
}
return $this->service;
}
public function trapEmergency($message, array $context = array(), $logVolume = HTTPBL_LOG_QUIET) {
return $this
->lazyLoadItself()
->trapEmergency($message, $context, $logVolume);
}
public function trapAlert($message, array $context = array(), $logVolume = HTTPBL_LOG_QUIET) {
return $this
->lazyLoadItself()
->trapAlert($message, $context, $logVolume);
}
public function trapCritical($message, array $context = array(), $logVolume = HTTPBL_LOG_QUIET) {
return $this
->lazyLoadItself()
->trapCritical($message, $context, $logVolume);
}
public function trapError($message, array $context = array(), $logVolume = HTTPBL_LOG_QUIET) {
return $this
->lazyLoadItself()
->trapError($message, $context, $logVolume);
}
public function trapWarning($message, array $context = array(), $logVolume = HTTPBL_LOG_MIN) {
return $this
->lazyLoadItself()
->trapWarning($message, $context, $logVolume);
}
public function trapNotice($message, array $context = array(), $logVolume = HTTPBL_LOG_MIN) {
return $this
->lazyLoadItself()
->trapNotice($message, $context, $logVolume);
}
public function trapInfo($message, array $context = array(), $logVolume = HTTPBL_LOG_VERBOSE) {
return $this
->lazyLoadItself()
->trapInfo($message, $context, $logVolume);
}
public function trapDebug($message, array $context = array(), $logVolume = HTTPBL_LOG_VERBOSE) {
return $this
->lazyLoadItself()
->trapDebug($message, $context, $logVolume);
}
public function log($level, $message, array $context = array()) {
return $this
->lazyLoadItself()
->log($level, $message, $context);
}
public function emergency($message, array $context = array()) {
return $this
->lazyLoadItself()
->emergency($message, $context);
}
public function alert($message, array $context = array()) {
return $this
->lazyLoadItself()
->alert($message, $context);
}
public function critical($message, array $context = array()) {
return $this
->lazyLoadItself()
->critical($message, $context);
}
public function error($message, array $context = array()) {
return $this
->lazyLoadItself()
->error($message, $context);
}
public function warning($message, array $context = array()) {
return $this
->lazyLoadItself()
->warning($message, $context);
}
public function notice($message, array $context = array()) {
return $this
->lazyLoadItself()
->notice($message, $context);
}
public function info($message, array $context = array()) {
return $this
->lazyLoadItself()
->info($message, $context);
}
public function debug($message, array $context = array()) {
return $this
->lazyLoadItself()
->debug($message, $context);
}
public function __sleep() {
return $this
->lazyLoadItself()
->__sleep();
}
public function __wakeup() {
return $this
->lazyLoadItself()
->__wakeup();
}
}