ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Log.php
Go to the documentation of this file.
1 <?php
2 
9 
14  private $logger;
15 
16 
23 
24  $logLevel = $config->getString('level', 'notice');
25  $this->logger = array('SimpleSAML\Logger', $logLevel);
26  if (!is_callable($this->logger)) {
27  throw new Exception('Invalid log level: ' . var_export($logLevel, TRUE));
28  }
29  }
30 
31 
37  public function emit(array $data) {
38  $str_data = json_encode($data);
39  call_user_func($this->logger, 'EVENT ' . $str_data);
40  }
41 
42 }
emit(array $data)
Write a stats event.
Definition: Log.php:37
Create styles array
The data for the language used.
getString($name, $default=self::REQUIRED_OPTION)
This function retrieves a string configuration option.
__construct(SimpleSAML_Configuration $config)
Initialize the output.
Definition: Log.php:22