mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-01-19 16:52:15 +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);
|
|
}
|
|
|
|
}
|
|
|
|
?>
|