mirror of
https://github.com/Yubico/yubikey-val.git
synced 2024-11-29 09:24:12 +01:00
22 lines
310 B
PHP
22 lines
310 B
PHP
|
<?php
|
||
|
|
||
|
class Log
|
||
|
{
|
||
|
|
||
|
function __construct($name='ykval')
|
||
|
{
|
||
|
$this->name=$name;
|
||
|
}
|
||
|
function log($priority, $message, $arr=null){
|
||
|
if (is_array($arr)) {
|
||
|
foreach($arr as $key=>$value){
|
||
|
$message.=" $key=$value ";
|
||
|
}
|
||
|
}
|
||
|
syslog($priority, $this->name . ':' . $message);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|