1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2024-11-29 09:24:12 +01:00
yubikey-val/ykval-log.php

22 lines
310 B
PHP
Raw Normal View History

2010-01-11 13:07:28 +01:00
<?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);
}
}
?>