1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-01-19 16:52:15 +01:00
yubikey-val/ykval-log.php
2010-01-11 12:07:28 +00:00

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);
}
}
?>