Definition at line 8 of file Log.php.
◆ __construct()
Initialize the output.
- Parameters
-
Definition at line 22 of file Log.php.
References array, and SimpleSAML_Configuration\getString().
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));
Create styles array
The data for the language used.
getString($name, $default=self::REQUIRED_OPTION)
This function retrieves a string configuration option.
◆ emit()
sspmod_core_Stats_Output_Log::emit |
( |
array |
$data | ) |
|
Write a stats event.
- Parameters
-
string | $data | The event (as a JSON string). |
Definition at line 37 of file Log.php.
38 $str_data = json_encode(
$data);
39 call_user_func($this->logger,
'EVENT ' . $str_data);
◆ $logger
sspmod_core_Stats_Output_Log::$logger |
|
private |
The documentation for this class was generated from the following file:
- libs/composer/vendor/simplesamlphp/simplesamlphp/modules/core/lib/Stats/Output/Log.php