__construct() public method

Constructor. Instantiates AbstractLogger, prepares backend
public __construct ( array $config )
$config array Logger configuration
Beispiel #1
0
 /**
  * Constructor. Instantiates ApiLogger, prepares backend
  *
  * @param ApiLoggerConfiguration $config  Api logger config object
  */
 public function __construct($config)
 {
     parent::__construct(\Scalr::config('scalr.logger.api'));
     $this->ipAddress = $config->ipAddress;
     $this->requestId = $config->requestId;
     $this->requestType = $config->requestType;
 }
Beispiel #2
0
 /**
  * Constructor. Instantiates AuditLogger, prepares backend
  *
  * @param AuditLoggerConfiguration $config  Audit logger config data
  */
 public function __construct(AuditLoggerConfiguration $config)
 {
     parent::__construct(\Scalr::config('scalr.logger.audit'));
     $this->user = $config->user;
     $this->accountId = $config->accountId;
     $this->envId = $config->envId;
     $this->remoteAddr = $config->remoteAddr;
     $this->ruid = $config->ruid;
     $this->requestType = $config->requestType;
     $this->systemTask = $config->systemTask;
 }
Beispiel #3
0
 /**
  * Constructor. Instantiates UserLogger, prepares backend
  */
 public function __construct()
 {
     parent::__construct(\Scalr::config('scalr.logger.user'));
 }